guitar-strings-123 / capstone-project

0 stars 1 forks source link

fix legacy React code in src/index.js #110

Closed bryceAM closed 1 year ago

bryceAM commented 1 year ago

Dependencies also updated. Everyone will need to npm i again.

bryceAM commented 1 year ago

The old way of rendering using React is currently what's being used...

ReactDOM.render(<App />, document.getElementById('root'));

The new way of rendering using React will be...

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  <BrowserRouter>
    <App />
  </BrowserRouter>
);