I hereby claim:
- I am petejodo on github.
- I am pjode (https://keybase.io/pjode) on keybase.
- I have a public key ASBCdgID_cfib46Pbf9by-assJbqF6pes1kRoLYJlTzLVQo
To claim this, I am signing this object:
| use std::error; | |
| use std::fmt; | |
| use http::StatusCode; | |
| use serde::Serializer; | |
| use serde_derive::Serialize; | |
| use tide::{body::Json, IntoResponse, Response}; | |
| #[derive(Debug, Serialize)] | |
| #[serde(tag = "type", content = "message")] |
| use lazy_static::lazy_static; | |
| use ring::rand::{SecureRandom, SystemRandom}; | |
| lazy_static! { | |
| static ref RANDOM: SystemRandom = { | |
| let rng = SystemRandom::new(); | |
| let mut warming_salt: Vec<u8> = vec![0; 8]; | |
| rng.fill(&mut warming_salt) | |
| .expect("Failure to initialize with warming salt"); | |
| rng |
| { | |
| "React Flow Functional Component": { | |
| "prefix": "rffc", | |
| "body": [ | |
| "// @flow", | |
| "", | |
| "import * as React from 'react';", | |
| "", | |
| "type Props = {", | |
| "\t${1:children: React.Node,}", |
I hereby claim:
To claim this, I am signing this object:
| // @flow | |
| import React from 'react'; | |
| type MyComponentTheme = { | |
| someClass: string | |
| }; | |
| export type {MyComponentTheme as Theme}; |
| import React, { DOM } from 'react'; | |
| import { colorPrimary, colorPrimaryButton } from './style-hocs'; | |
| const PrimaryButton = colorPrimaryButton(DOM.button); | |
| const PrimaryLink = colorPrimaryButton(DOM.link) | |
| const PrimaryComponent = colorPrimary(AnotherComponent); | |
| export const SomeComponent = props => ( | |
| <div> | |
| <PrimaryButton>A primary button</PrimaryButton> |