Reach UI is an accessible foundation for React applications and design systems.
The three equally important goals are to be:
- Accessible
- Composable
- Stylable
import { json } from "next-runtime"; | |
import jwt from "jsonwebtoken"; | |
const SESSION_KEY = "some-secret"; | |
export function readSession(cookies) { | |
const sessionCookie = cookies.get("session"); | |
let data = {}; |
/* | |
First run npm install topojson --save and then link "node_modules/topojson/build/topojson.min.js" | |
above this snippet in your html. | |
Usage: http://leafletjs.com/reference.html#geojson | |
*/ | |
L.TopoJSON = L.GeoJSON.extend({ | |
addData: function (data) { | |
var geojson, key; |
export function actionTypeBuilder(prefix) { | |
return { | |
type: actionType => `${prefix}/${actionType}`, | |
loading: actionType => `${actionType}/loading`, | |
ready: actionType => `${actionType}/ready`, | |
stopped: actionType => `${actionType}/stopped`, | |
changed: actionType => `${actionType}/changed`, | |
error: actionType => `${actionType}/error`, | |
success: actionType => `${actionType}/success` | |
}; |