How to use the react-cosmos-shared2/util.updateState function in react-cosmos-shared2

To help you get started, we’ve selected a few react-cosmos-shared2 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-cosmos / react-cosmos / packages / react-cosmos-playground2 / src / plugin / PluginProvider.js View on Github external
({ pluginState }) => ({
        pluginState: {
          ...pluginState,
          [pluginName]: updateState(pluginState[pluginName], stateChange)
        }
      }),
      cb
github react-cosmos / react-cosmos / packages / react-cosmos-playground2 / src / plugins / Renderer / index.js View on Github external
rendererItemState => ({
      ...rendererItemState,
      fixtureState: updateState(rendererItemState.fixtureState, stateChange)
    }),
    () => {
github react-cosmos / react-cosmos / packages / react-cosmos-playground2 / src / plugins / Renderer / Renderer.js View on Github external
rendererItemState => ({
        ...rendererItemState,
        fixtureState: updateState(rendererItemState.fixtureState, stateChange)
      }),
      () => {