Answers for "rotas react com axios"

0

rotas react com axios

function App() {
  return (
    <Routes />
  )
}
Posted by: Guest on March-16-2021
0

rotas react com axios

import React from 'react';
import Header from '../Header';
 
function Form(){
    return (
        <div>
            <Header title="React Form" />
            Olá Mundo!
        </div>
    )
}
 
export default Form;
Posted by: Guest on March-16-2021
0

rotas react com axios

import React from 'react';
import {Route, BrowserRouter} from 'react-router-dom';
 
import Home from './Pages/Home';
import Form from './Pages/Form';
 
function Routes(){
    return (
        <BrowserRouter>
            <Route component={Home} path="/" exact />
            <Route component={Form} path="/cadastro" />
        </BrowserRouter>
    )
}
 
export default Routes;
Posted by: Guest on March-16-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language