Skip to content

Instantly share code, notes, and snippets.

@Swiip
Last active May 18, 2018 07:09
Show Gist options
  • Save Swiip/f060a655881c0e1d7e63c47e19092c94 to your computer and use it in GitHub Desktop.
Save Swiip/f060a655881c0e1d7e63c47e19092c94 to your computer and use it in GitHub Desktop.
import { component, css, html, withState, withStyle, withMarkup } from "MyIdealFramework";
const MyComponent = component(
withState(() => ({content: "hello world"})),
withStyle(props => css`color: red;`),
withMarkup(props => html`<div>${props.content}</div>`)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment