Answers for "Add base url to react router for gh-pages deployment"

0

Add base url to react router for gh-pages deployment

import BrowserRouter from 'react-router-dom/BrowserRouter'

ReactDOM.render((
   <BrowserRouter basename={process.env.PUBLIC_URL}>
     <App />
   </BrowserRouter>
), ...)
Posted by: Guest on July-14-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language