This PR addresses the new MessageContext component that was moved from the react boilerplate. In steps of making the react boilerplate more of generic (starting template), I have moved MessageContext from the boilerplate to Mark one making it accessible for future projects. in addition to Context, MessageContext also utilizes a Reducer. Reducers consolidate a component’s state update logic while Context lets you pass information deep down to other components.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality
to change)
Checklist:
[X] I have run eslint on the code
[X] I have added JSDoc for all of my code (where applicable)
Describe your changes
This PR addresses the new
MessageContext
component that was moved from the react boilerplate. In steps of making the react boilerplate more of generic (starting template), I have moved MessageContext from the boilerplate to Mark one making it accessible for future projects. in addition toContext
,MessageContext
also utilizes aReducer
. Reducers consolidate a component’s state update logic whileContext
lets you pass information deep down to other components.Types of changes
Checklist:
eslint
on the codePriority:
Related Issues:
Fixes #___