-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dec 28th React Training Notes #218
Comments
Suggestion: We talk about components that are rendered as markup, but that's not really the useful part of React. I think it would go a long way to talk about two-way binding and do a light introduction of the virtual DOM |
Change: Wrap example 1 and 2 with a function. These are good, but speed reading devs (like myself) may cntl+c cntl+v these and find that they don't work verbatim. |
Nitpick: Mapping an array to elements will throw a warning without assigning keys. If we mention the virtual DOM earlier, this is an opportunity to talk about how elements are tracked |
Intro to JSX notes: Section 2:We can pass attribute-like things to our components These are called Section 3:React allows us to embed HTML into our components. This is called JSX Siblings:JSX requires that any sibling elements are wrapped inside of a parent. This is one of the most common errors encountered by beginners. The following JSX would throw an error:
This can also work by returning a list:
Some nitpicks: (ie. "Bitovi") => (i.e. "Bitovi") JSX Is JavaScript => JSX is JavaScript |
Learn React -> Course Outline
React needs to be capitalized |
Setting Up Your Environment -> Try It Out
Given the audience, they may not know what these terms mean. It could be worth linking them to a resource that explains the benefits, or briefly writing it out. |
Introduction to JSX -> 1. The HelloWorld component is simply a function and the first letter is capitalized. I think the link to PascalCase is showing the URL when it should be a link. |
Introduction to JSX -> 2. We can pass attribute-like things to our components. These are called props.
This is the only point so far where first person is used. I'd switch it to say "Above, the component is being reused 3 times, each time with a different name |
I caught this in #219 |
What are React Components notes:ExerciseThis should include a hint for a link on the description of the onClick event handler ex. https://reactjs.org/docs/handling-events.html |
Introduction to JSX -> Exercise. It'd be nice to "give away" the CSS for centering the letter in the box. It seems wasteful for people to have to Google that. |
Introduction to JSX general note ... I think there's a way to have subsections appear in the timeline on the top right. It'd be nice to have an easy way to jump back to the styles, loops, etc sections, since this is a very long page. |
What are React Components -> Components. Typo here:
|
Props: Component Arguments -> Basic Props Usage In the solution to the previous exercise, it passes a |
Styling in React notes:Inline stylingWe should link to the emotion repo: https://emotion.sh/docs/introduction |
Here's a placeholder for folks to add comments / suggestions for the React Training.
The text was updated successfully, but these errors were encountered: