Dynamically Load a Code-Split Universal React Component via a Prop

Tim Kindberg
InstructorTim Kindberg
Share this video with your friends

Social Share Links

Send Tweet
Published 7 years ago
Updated 6 years ago

We’ll use a function as our first param in the universal HOC. This function takes in the props and you can return a dynamic import using the props that were received. This allows us to make a very generic and reusable Universal component!

Nick Portokallidis
Nick Portokallidis
~ 7 years ago

My mind keeps blowing every 4 minutes or so. Dont mind the useless comment but its happening

Tim Kindberg
Tim Kindberginstructor
~ 7 years ago

@Nick ha... ok! I hope it's blowing up in a good way.

Markdown supported.
Become a member to join the discussionEnroll Today