Skip to content

bryanakitchen/lab35-blog

Repository files navigation

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.