Skip to content

Use JSX routes insted of static array of routes #148

@Thihup

Description

@Thihup

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions