redux using react code example Example 1: react redux yarn add react-redux Example 2: react redux npx create-react-app my-app --template redux