Rev 14181 | Rev 14193 | Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
import React from 'react'import { useState } from 'react'import { BrowserRouter, Route, Switch } from 'react-router-dom'import TableView from '../view/TableView'const ViewsRouter = ({ backendVars }) => {const [actionLink, setActionLink] = useState()return (<BrowserRouter><Switch><Route path='/' ><TableViewsetActionLink={setActionLink}{...backendVars}/></Route><Route path='/:action' component={() => <h1>Edit</h1>} /></Switch></BrowserRouter>)}export default ViewsRouter