Rev 14192 | Rev 14201 | 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='/settings/jobs-description/:action' component={() => <h1>Edit</h1>} /><Route exatc path='/settings/jobs-description' ><TableViewsetActionLink={setActionLink}{...backendVars}/></Route></Switch></BrowserRouter>)}export default ViewsRouter