Migraine Tracker – Create Frontend

Firstly, I use create-react-app to create my project files.  But then I’ll delete everything in src folder and start from scratch to get the things I want to have in it.

In preparation for some packages I’ll need later on, I “yarn add” (same as “npm install”, using yarn the following packages: redux, redux-promise, react-redux, and react-router-dom.

I also want to use the Material UI framework, so I’ll yarn add “@material-ui/core”.

I also need to yarn add ‘redux-thunk’.


I had to add a sort function to my map function in order to get the headache entries to display in descending order of date.


Leave a Reply

Your email address will not be published.