Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 666 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 666 Bytes

The Reducer

Netlify Status

Main / Refactor Branch

This repo was refactored to use Redux and utilize createStore, combineReducers, useSelector, and useDispatch. A second reducer was created to incorporate comments capability.

Dev Branch

This repo utilizes a reducer to create and delete blog posts. Two actions are stored and imported to the reducer. Using the Context object, a Provider component is wrapped around App to leverage global state. Hooks are used to hold state locally on the PostForm component.