react-router-loader icon indicating copy to clipboard operation
react-router-loader copied to clipboard

Passing in props

Open mhaagens opened this issue 9 years ago • 2 comments

Works great! I was wondering if there's a way to pass in props to the component? I used to be able to do {(props) => <Home {...props} store={store} />}, how would I go about doing that now?

mhaagens avatar Oct 05 '16 09:10 mhaagens

I think there is no necessary to use this loader, cause the react-router's dynamic route feature is already available.

ian4hu avatar Oct 07 '16 13:10 ian4hu

@ian4hu Yes. You can use require.ensure instead of this loader.

luqin avatar Oct 08 '16 01:10 luqin