Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import React, {useState} from 'react';
import RegistrationForm from './components/RegistrationForm/RegistrationForm';
import {
BrowserRouter as Router,
Switch,
Route
} from "react-router-dom";
function App() {
return (
<Router>
<div className="App">
<Header/>
<div className="container d-flex align-items-center flex-column">
<Switch>
<Route path="/" exact={true}>
<RegistrationForm />
</Route>
</Switch>
</div>
</div>
</Router>
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment