October 2019
Intermediate to advanced
426 pages
11h 49m
English
In order to keep things simple initially, and to show how Redux works, we are not going to use connectors for now. We are simply going to replace the state object, and the dispatch function that was previously provided by a Reducer Hook, with Redux.
Let's set up the Redux store now:
import React, { useState, useEffect, useMemo } from 'react'import { createStore } from 'redux'
const initialState = { todos: [], filter: 'all' }
Read now
Unlock full access