mirror of
https://github.com/aleleba/create-react-ssr.git
synced 2025-06-19 12:28:37 -06:00
PR-753737: Se saca el proyecto al directorio Raíz y se actualizan dependencias.
This commit is contained in:
16
src/routes/index.js
Normal file
16
src/routes/index.js
Normal file
@ -0,0 +1,16 @@
|
||||
import React from 'react';
|
||||
import InitialComponent from '../frontend/components/InitialComponent';
|
||||
import OtherComponent from '../frontend/components/OtherComponent';
|
||||
|
||||
const OTHER_COMPONENT = {
|
||||
path: '/other-component',
|
||||
element: <OtherComponent />
|
||||
};
|
||||
|
||||
const INITIAL_COMPONENT = {
|
||||
path: '/',
|
||||
element: <InitialComponent />,
|
||||
};
|
||||
|
||||
|
||||
export default [ INITIAL_COMPONENT, OTHER_COMPONENT ];
|
Reference in New Issue
Block a user