npm add redux to react code example Example 1: npm install redux and react-redux npm install redux react-redux --save Example 2: react redux npm npm i react-redux