min9nim / react-dynamic-route Goto Github PK
View Code? Open in Web Editor NEWLoad react component dynamically based on routing path
Home Page: https://www.npmjs.com/package/react-dynamic-route
Load react component dynamically based on routing path
Home Page: https://www.npmjs.com/package/react-dynamic-route
CRA5.0 에서 사용할 때 아래와 같은 이상한 오류가 발생함.
버젼 차이 문제 같으음..;
A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.
error-component-stack
at Route (http://localhost:3000/static/js/bundle.js:242325:11)
at DynamicRoute
at Routes (http://localhost:3000/static/js/bundle.js:14559:82)
at DndProvider (http://localhost:3000/static/js/bundle.js:259978:5)
at QueryClientProvider (http://localhost:3000/static/js/bundle.js:238549:21)
at Suspense
at NavigationScroll (http://localhost:3000/static/js/bundle.js:8601:5)
at InnerThemeProvider (http://localhost:3000/static/js/bundle.js:55808:70)
at ThemeProvider (http://localhost:3000/static/js/bundle.js:55465:5)
at ThemeProvider (http://localhost:3000/static/js/bundle.js:55828:5)
at ErrorBoundary (http://localhost:3000/static/js/bundle.js:836:5)
at StyledEngineProvider (http://localhost:3000/static/js/bundle.js:55654:5)
at App (http://localhost:3000/static/js/bundle.js:538:81)
at Router (http://localhost:3000/static/js/bundle.js:242340:15)
at BrowserRouter (http://localhost:3000/static/js/bundle.js:241819:5)
at Provider (http://localhost:3000/static/js/bundle.js:239256:20)
CRA5.0 의 package.json
"react": "^18.1.0",
"react-apexcharts": "^1.3.7",
"react-datepicker": "^4.8.0",
"react-device-detect": "^1.17.0",
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^18.1.0",
"react-dynamic-route": "^0.1.2",
"react-hot-loading": "^0.0.2",
"react-hot-toast": "^2.2.0",
"react-perfect-scrollbar": "^1.5.8",
"react-query": "^3.34.5",
"react-redux": "^7.2.3",
"react-router": "6.1.1",
"react-router-dom": "6.1.1",
"react-scripts": "5.0.1",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.