Skip to content

Instantly share code, notes, and snippets.

Created November 3, 2019 11:31
What would you like to do?
import React from "react";
import Todos from "./components/Todos";
import Login from "./components/Login";
import { TodoProvider } from "./contexts/TodoContext";
import { BrowserRouter as Router, Switch, Route } from "react-router-dom";
import "./App.css";
function App() {
return (
<div className="App">
<Greeting />
<Route path="/todos">
<Todos />
<Route path="/">
<Login />
function Greeting() {
return <p>You are not logged in</p>;
export default App;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment