redux-connect
redux-connect copied to clipboard
Use JSX routes insted of static array of routes
Is there a way to use the routes like this?
ReactDOM.render(
<BrowserRouter>
<ReduxAsyncConnect>
<Switch>
<Route path="/path/1" component={Component1} />
<Route path="/path/2" component={Component2} />
</Switch>
</ReduxAsyncConnect>
</BrowserRouter>,
document.getElementById('main-container')
)