PR-753737: Agregando SSR y React Router.

This commit is contained in:
2022-04-17 22:54:45 +00:00
parent 712564e7ca
commit 7e018e2763
14 changed files with 443 additions and 216 deletions

16
src/routes/index.js Normal file
View 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 ]