seas-computing / mark-one

A UI component library for building React Apps (in development)
https://seas-computing.github.io/mark-one/
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Move message context component from react boilerplate #159

Closed Urjikoo closed 8 months ago

Urjikoo commented 8 months ago

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 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

Checklist:

Priority:

Related Issues:

Fixes #___