Course lesson
Dynamically Load a Code-Split Universal React Component via a Prop
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!
- Duration
- 2 min
- Access
- Pro
- Transcript
- Available
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!