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

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!