New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-redux-app-container

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-redux-app-container

react-redux-app-container =========================

latest
Source
npmnpm
Version
0.3.5
Version published
Maintainers
1
Created
Source

react-redux-app-container

Installation

Install the package:

npm install --save react-redux-app-container

Usage

// index.js

import React from 'react'
import ReactDOM from 'react-dom'
import { ReactReduxAppContainer } from 'react-redux-app-container'
import createStore from './store'
import App from './App'

const store = createStore()

ReactDOM.render(
    <ReactReduxAppContainer store={store}>
        <App />
    </ReactReduxAppContainer>,
    document.getElementById('root')
)
// store.js

import { createStore } from 'react-redux-app-container'

export default () => {
    const initialState = {}
    const reducers = {}
    const middlewares = []
    const enhancers = []

    return createStore(initialState, reducers, middlewares, enhancers)
}

Devtools

The Redux DevTools Extension is automatically recognized.

If you need to pass options to the devtools extension, you can pass them in the 5th parameter:

// store.js
// ...
    const devtoolsOptions = {
        name: 'foo'
    }

    return createStore(initialState, reducers, middlewares, enhancers, devtoolsOptions)
}

FAQs

Package last updated on 07 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts