Giter Site home page Giter Site logo

react-redux's Introduction

This Project guides to integrate react app with redux

Notes :: Notes for React-Redux

React-Redux is used to connect react with redux

Provider and connect are components of react-redux we pass props to them

connect component is special component connects with the provider tag , it communicates with the provider with ( context ) system

context system = Allows any parent component to communicate to child component even if there are other components in between them

provider = Any app in our component gets access to store

Steps to take care of

1 ) actions or action-creators ( functions which return action ) are plain objects that has type = "" ( used to switch through reducer) , payload = ""
2 ) store => has the state of entire application is made by combining reducers if many 3 ) Reducers => again a function which has 2 args (action , payload) , work of reducer is to store initial state , and return new state based on actions , keep in mind the original state should not change ( make a copy of it and than return a new object) 4) Component Re-renders on mapStatetoProps returns new state from store

react-redux's People

Contributors

hardyganatra avatar

Watchers

 avatar

react-redux's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.