Where should react-router be set?

recently, in learning react, I would like to ask an experienced friend, in general, is the router of react set in app.js or index.js?

Oct.27,2021

// App.js
class App extends PureComponent {
    render() {
        return (
            <HashRouter>
                <Provider value={{ data }}>
                    <Route exact path="/" component={CategoryList} />
                    <Route path="/question/:id" component={QuestionDetail} />
                </Provider>
            </HashRouter>
        );
    }
}

I wrote
app.js and index.js in the App.js file. Router is just a component.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb54aa-2549.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb54aa-2549.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?