A Pen by Egbuna Oluebube Princess on CodePen.
This file contains hidden or 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
| // BrowserRouter is the router implementation for HTML5 browsers (vs Native). | |
| // Link is your replacement for anchor tags. | |
| // Route is the conditionally shown component based on matching a path to a URL. | |
| // Switch returns only the first matching route rather than all matching routes. | |
| import { | |
| BrowserRouter as Router, | |
| Link, | |
| Route, | |
| Switch, | |
| } from 'react-router-dom'; |
This file contains hidden or 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
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <title>Working with remote data</title> | |
| <meta charset="utf-8"/> | |
| <!-- Polyfill in case your browser does not support the fetch API --> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/0.10.1/fetch.js"></script> | |
| </head> | |
| <body> |
A Pen by Egbuna Oluebube Princess on CodePen.
A Pen by Egbuna Oluebube Princess on CodePen.