Skip to content

Instantly share code, notes, and snippets.

@wyze
wyze / machine.js
Created October 16, 2020 01:17
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

Keybase proof

I hereby claim:

  • I am wyze on github.
  • I am wyze (https://keybase.io/wyze) on keybase.
  • I have a public key ASDNktlzs35IbqQoe_8pbnU079E3KkNkp6nfuQw-aPFhMwo

To claim this, I am signing this object:

@wyze
wyze / Multi.re
Created April 9, 2017 23:46
More than one React component in a Reason file (module).
module WrapperA = {
module A = {
include ReactRe.Component;
let name = "A";
type props = ();
let render _ => <div>(ReactRe.stringToElement "A")</div>;
};
@wyze
wyze / esnextbin.md
Created March 9, 2016 18:46
esnextbin sketch
import declarer from '../utils/declarer'
const antGutter = decl => {
declarer({
body: {
background: 'tomato'
},
'.one:after': {
content: `'1'`
},
@wyze
wyze / app.js
Created November 10, 2015 04:32
Redux state passed to onEnter of react-router.
import createHistory from 'history/lib/createBrowserHistory';
import createStore from './redux/createStore';
import createRoutes from './routes';
import React from 'react';
import { Provider } from 'react-redux';
import { Router } from 'react-router';
import { render } from 'react-dom';
const history = createHistory();
const store = createStore(history, window.__data);