marleymarl / geotimeline

12 stars 10 forks source link

Add SelectForm component as child of PredictForm.js #81

Closed marleymarl closed 4 years ago

marleymarl commented 4 years ago

Take the Select form in PredictForm.js and create a SelectForm child component out of it. It should take in currentQuestion as a prop, the value of which will determine the question posed and options available in SelectForm. Take in handleFormSubmit as a prop also (and create the function in parent i.e. PredictForm.js -- just log out select value for now) and then trigger that in SelectForm onChange.

marleymarl commented 4 years ago

Closing this as I figured out an easier way to do it.