hasanayan / react-dynamic-remote-component

Allows you to dynamically load a component from a remote using webpack 5's module federation.
MIT License
50 stars 16 forks source link

Pass props unpacked #2

Closed qlbp closed 1 year ago

qlbp commented 1 year ago

Hi here are the implemented changes to pass props and an example to show it working.

The changes were slightly different from those mentioned in #1 to allow direct passing prop by name, rather than having to pass in an object called props. LMK if you would prefer that though, it's in the branch pass-props-to-remote-component.

qlbp commented 1 year ago

@hasanayan Ah sorry I forgor to tag 💀

hasanayan commented 1 year ago

closing this as I have pushed the feature with a slight difference