The ‘solution’ to this exercise is broken. To be validated correct, it requires code that is taught later in the unit.
According to the presented instructions, a student shouldn’t need to build a constructor, thereby setting userInput’s initial state and binding handleUserInput. They also shouldn’t have to either add a value prop to the Input component or modify what is between the <h1> tags.
As it exists, if you ‘pass’ this exercise, you can Alt+Enter through the following exercises that actually teach you what is required to finish the unit.
How come we are adding the handleUserInput function to input.js and not a container file? Have I misunderstood container and presentational components?
No you haven’t, although I wouldn’t worry about it too much because the creator has already said the usage of components and containers isn’t that relevant anymore since we can use Hooks for the same thing.
Im still having problems today with this excersize. It’s asking me to write a function and then not accepting it…When I check the solution it wants to revert back to the original state the file is in with a function that has already been defined (this is already the solution they are asking you to type).
So far the whole React course has been a bad experience for learning it seems very messy and confusing…