Rev 14184 | 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 exact path='/:action' component={() => <h1>Edit</h1>} />
<Route path='/' >
<TableView
setActionLink={setActionLink}
{...backendVars}
/>
</Route>
</Switch>
</BrowserRouter>
)
}
export default ViewsRouter