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

@sialvsic/redux

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sialvsic/redux

This repo aim to analyze Redux and DIY it.

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

redux-analyze

This repo aim to analyze Redux and DIY it.

Redux 动机

  • More State, More Complex
  • How Manage State
  • React didn’t handle it

Redux 三大原则

  • Single source of truth - 单一数据源
  • State is read only - State是只读的
  • Changes are made with pure functions - 使用纯函数进行修改

Redux 核心组成

  • Store
  • Action
  • Reducer

Redux WorkFlow

Action -> Reducers -> Store -> View

API store

  • getState()
  • subscribe(listener)
  • dispatch(action)

Other

  • createStore(reducer, [preloadedState], enhancer)
  • combineReducers(reducers)
  • bindActionCreators
  • compose
  • applyMiddleware
  • middleware

Teach Path

  • Store(createStore)
  • combineReducers(reducers)
  • bindActionCreators(actionCreators, dispatch)
  • compose(...functions)
  • applyMiddleware && createStore-enhancer
  • logger
  • thunk

Learn Path

Redux -> Redux thunk -> React Redux -> React -> React Router

How to publish to npm

npm publish --access public
npm unpublish @sialvsic/redux-analyze@0.0.1 -f

How to publish in local with verdaccio

npm publish --registry http://localhost:4873

FAQs

Package last updated on 16 Apr 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