Skip to content

Instantly share code, notes, and snippets.

View Princesso's full-sized avatar
🏠
Working from home

Princess Oluebube Egbuna Princesso

🏠
Working from home
View GitHub Profile
@Princesso
Princesso / basic_router.jsx
Created June 15, 2018 05:42 — forked from siakaramalegos/basic_router.jsx
Basic example of React Router: BrowserRouter, Link, Route, and Switch
// 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';
@Princesso
Princesso / function-plot.markdown
Created February 12, 2018 20:21
function plot
@Princesso
Princesso / index.html
Created February 12, 2018 15:11
Working with remote data
<!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>
@Princesso
Princesso / google-map-example-3-reverse-geocoder.markdown
Created February 12, 2018 15:11
Google Map Example 3 (reverse geocoder)