Closed LucyMac closed 4 years ago
I'm thinking we could do without the 'hint' in the final exercise which spells out how to pass the pokemon state down as a pokemon prop. I haven't made this change, it's just a suggestion, but I feel like it spoon-feeds it all a bit.
This is always a tricky balance. My experience is that stronger students don't really read the hints so aren't bothered by them. But weaker students need more hand holding (even if they refer to the example code we've just gone through).
I'd propose we keep spoon-feeding and see how it goes? EDIT: another alternative could be to put more things in <details>
blocks as this hides them by default: stronger students shouldn't need to reveal them.
If we do keep it, would you be against breaking up the state exercise a bit into smaller steps.
you might want to copy that to live in the same domain as the other sandboxes?
I can fork it and move it myself but that would require changing the URL. I believe you should be able to do it yourself. If you go to the dashboard, then you should see you're part of the CYF "team".
You can then drag the sandbox from "My Sandboxes" into this folder:
This gives everyone on the CYF team edit permissions (and saves lots of URL updates).
The final exercise with the pokemon data fetch feels unfinished. Should we add an instruction to pass down the pokemon from the API response and change the image + also the abilities? We can leave it quite vague and see what they come up with, but I feel we should explicitly say what bits of data they should be using at least.
Hmm yes, that is perhaps in conflict with my "break every step down" philosophy. I would be in favour of adding a hint to say exactly what to pass (perhaps could "hide" it using the <details>
trick?)
Looking through it, I'm not sure where we could add more, but it feels like only 4 exercises during the day is not enough?
As noted in this thread: https://github.com/CodeYourFuture/syllabus/pull/448#discussion_r429762378, I removed the content about destructuring arrays (and just linked to a blog post). We could do a quick exercise on it (maybe just in CodeSandbox/JSBin/where-ever)?
@nbogie I think suggested something about not mutating state? Idk though, after that section feels like the natural place for the first state exercise.
Perhaps "when to use props or state" too? Although to me this section also doesn't feel "important" enough to merit exercise time.
In haste, it's late 💤
I've split exercises and added some more, plus clarified some instructions.
I've also added a section on conditionals + a blurb on the useState
setter function naming convention.
@40thieves / @nbogie / @mozartdiniz
What does this change?
Module: React Week(s): 2
Description
pokemon
state variable name to be calledbestPokemon
instead, so we avoid the patternpokemon={pokemon}
which I find causes confusion as to which is which. Speaking of which, I'm thinking we could do without the 'hint' in the final exercise which spells out how to pass the pokemon state down as a pokemon prop. I haven't made this change, it's just a suggestion, but I feel like it spoon-feeds it all a bit.