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 6 years ago
Updated 5 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
~ 6 years ago

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

Tim Kindberg
Tim Kindberginstructor
~ 6 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