- react-datepicker: I was able to grab the css from node_modules for this component and put it in index.html. Will the LE have access to it the react-datepicker component though? I will create a date validation field if necessary.
- I am curious how css is going to work. I feel I will need to describe how to include CSS in the project description. The design with class names will be needed before finalizing the instructions, correct?
- I lifted up the state for the appointments and contacts arrays, but felt that the validation state should be in each of the form components. Thoughts?
- I didn't include time yet. I can activate it on the installed react-datepicker component or will need to create time field if necessary.
The app is a 2 page appointments app. You can add and see your appointments on the Appointments page and add and see your contacts on the Contacts page.
Components
appointments
: page that renders the appointment form and the appointments listcontactForm
: page that renders the contacts form and the contacts listappointmentForm
: form to add an appointment. Validatestitle
andcontact
are not empty strings to submitcontactForm
: form to add a contact. Validates the phone number and email fields using regex. Validatesname
is not empty andphone
andemail
are valid to submitcontactPicker
:<select>
list of contacts.tile
: displays generic data using values of object inappointments
orcontacts
arraystileList
: lists tile objects using theappointments
orcontacts
arrays