This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//https://www.digitalocean.com/community/tutorials/how-to-add-login-authentication-to-react-applications | |
//By default, react-router-dom is now ^6.0.2. | |
//Below are the significant changes for the tutorial to use the new version of react-router-dom | |
//Line 14 -> Switch has been replaced with Routes | |
//Line 29/34 -> Switch has been replaced with Routes (2) | |
import React, { useState }from "react"; | |
import "./App.css"; |