Skip to content

Usage with create-react-app #18

@Hum4n01d

Description

@Hum4n01d

I have a React app running on create-react-app and I'm trying to use redux-scuttlebutt to sync different clients with each other. In my index.js on the client side I have

const enhancer = compose(
  scuttlebutt(),
  window.__REDUX_DEVTOOLS_EXTENSION__
    ? window.__REDUX_DEVTOOLS_EXTENSION__({ stateSanitizer: devToolsStateSanitizer })
    : f => f
)

const store = createStore(
  guesses,
  undefined,
  enhancer
)

How can I set up redux-scuttlebug on the backend without having to eject?

(sidenote: I may not be understanding how the library works 😉)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions