Skip to content

[Docs] Improve section Using DevTools #104

Open
@davincho

Description

@davincho

I would suggest to list the exact versions of the required dependencies (react, react-redux and redux-devtools), as with React 14 it was deprecated and with React 15.X there is no React.render anymore, but it was moved to ReactDom.render from react-dom.
Furthermore following the example I had to use version 2.1.5 of redux-devtools as some named exports did not exist in the latest version.

Probably mentioning the Chrome DevTools Extension would be helpful as well:

If you think React is an overkill just for including DevTools, you may would be interested in the Chrome Redux DevTools Extension. Follow these steps to integrate it into you app.

Naive example:

$ngReduxProvider.createStoreWith(rootReducer, [], [window.devToolsExtension()]);

With webpack and define plugin:

const enhancer = [];

if(process.env.NODE_ENV === 'development' && window.devToolsExtension) {
  enhancer.push(window.devToolsExtension());
}

$ngReduxProvider.createStoreWith(rootReducer, [], enhancer);

I am happy to create a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions