mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-29 08:57:03 +02:00
feat: add App.js (react router config renderer)
This commit is contained in:
parent
bc706ae33d
commit
750804646c
1 changed files with 6 additions and 0 deletions
6
lib/core/App.js
Normal file
6
lib/core/App.js
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
import {renderRoutes} from 'react-router-config';
|
||||||
|
|
||||||
|
import routes from '@generated/routes'; // eslint-disable-line
|
||||||
|
import props from '@generated/docsData'; // eslint-disable-line
|
||||||
|
|
||||||
|
export default () => renderRoutes(routes, props);
|
Loading…
Add table
Add a link
Reference in a new issue