Skip to content

Instantly share code, notes, and snippets.

@krambuhl
Created September 28, 2016 00:07
Show Gist options
  • Save krambuhl/767da1926260f9d18d2077339f647196 to your computer and use it in GitHub Desktop.
Save krambuhl/767da1926260f9d18d2077339f647196 to your computer and use it in GitHub Desktop.
Appleseed component template
import createComponent from 'appleseed';
const ui = ({ el }) => ({
el: el
});
const init = ({ ui }) => ({
});
const subscriptions = ({ ui, pushUpdate }) => {
};
const update = ({ message, state }) => {
switch(message) {
case '': return () => ({ });
}
};
const view = ({ ui, state }) => {
};
export default createComponent({
ui,
init,
subscriptions,
update,
view
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment