redux-connect icon indicating copy to clipboard operation
redux-connect copied to clipboard

Use JSX routes insted of static array of routes

Open Thihup opened this issue 4 years ago • 0 comments

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')
)

Thihup avatar Mar 02 '20 17:03 Thihup