Upgrade to Pro — share decks privately, control downloads, hide ads and more …

React/Flux like pattern for embedded UI

React/Flux like pattern for embedded UI

Wojtek Siudzinski

November 21, 2019
Tweet

More Decks by Wojtek Siudzinski

Other Decks in Programming

Transcript

  1. class Keypad { void keyDown(); } class Dispatcher { Store

    store; void dispatchAction(action, args); Page getCurrentView(); } class View { void handleAction(action, page); void handleStoreUpdate(prop); } dispatchAction(ACTION_KEY_DOWN, {KEY_X}); getCurrentView() .handleAction( ACTION_KEY_DOWN, {KEY_X} );
  2. class Keypad { void keyDown(); } class Dispatcher { Store

    store; void dispatchAction(action, args); Page getCurrentView(); } class View { void handleAction(action, page); void handleStoreUpdate(prop); } store.activeKey = KEY_X; handleStoreUpdate( STORE_PROP_ACTIVE_KEY );
  3. class Keypad { void keyDown(); } class Dispatcher { Store

    store; void dispatchAction(action, args); Page getCurrentView(); } class View { void handleAction(action, page); void handleStoreUpdate(prop); } class Screen { void drawBackground(); void drawActiveKey(); } class Synth { void setNote(key); }