It correctly bundles React in production mode and optimizes the build for the best performance. npm run buildīuilds the app for production to the build folder. You will also see any lint errors in the console. In the project directory, you can run: npm start The link previewing in browser status bar, and the ability for users to open link in a new tab ( mousewheel-click, cmd + click on macOS, ctrl + click on windows, click and hold on mobile devices, etc.). Using onTouchTap/onClick to trigger page change instead of / will lose some native features such as Using href instead of react-router's Link component will cause the page to reload Why not `onTouchTap` and programmically change route? Import MenuItem from 'material-ui/MenuItem'įor more information, see the above issue, or this React-router's Link within material-ui's MenuItem with the containerElement prop. This project was bootstrapped with Create React App. React-router/Link within material-ui/MenuItemĮxample for how to use react-router/Link within material-ui/MenuItem
0 Comments
Leave a Reply. |