project_cryptoverse icon indicating copy to clipboard operation
project_cryptoverse copied to clipboard

Convert Route components in App.js to self-closing tags

Open omeiirr opened this issue 3 years ago • 0 comments

In App.js , for better readability, we should convert

  <Switch>
    <Route exact path="/">
        <Homepage />
    </Route>

    <Route exact path="/exchanges">
        <Exchanges />
    </Route>
  </Switch>

to

  <Switch>
    <Route exact path="/" component={Homepage}>
    <Route exact path="/exchanges" component={Exchanges}>
  </Switch>

Would like to know your thoughts @adrianhajdin I can submit a PR if assigned this issue 😄

omeiirr avatar Sep 20 '21 18:09 omeiirr