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

Share this video with your friends

Send Tweet

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 Kindberg(instructor)
~ 7 years ago

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