MDN React tutorials #2: Todo list beginning#30453
MDN React tutorials #2: Todo list beginning#30453chrisdavidmills merged 24 commits intomdn:mainfrom mxmason:ej/react-rewrite-2
Conversation
|
Preview URLs (comment last updated: 2023-12-21 11:03:13) |
mxmason
left a comment
There was a problem hiding this comment.
Hello, @chrisdavidmills. This is ready for you!
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
pepelsbey
left a comment
There was a problem hiding this comment.
I noticed that in the “Implementing our styles” sections only 4 lines were intentionally changed (replacing :focus with :focus-within), but the number of changes in the diff is much higher because the CSS properties got sorted by some formatter. It’s a bit harder to review now.
chrisdavidmills
left a comment
There was a problem hiding this comment.
@mxmason. OK, I've gone through this one, and it's mostly looking fine. Very little to report ;-)
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
@pepelsbey I think it's fine in this case. The code was reviewed thoroughly during the previous app iteration, and the small changes look OK to me (see #30453 (comment) for the explanation of the reordering). |
Co-authored-by: Chris Mills <[email protected]>
mxmason
left a comment
There was a problem hiding this comment.
Back to you, @chrisdavidmills!
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
| Let's say that we've been tasked with creating a proof-of-concept in React – an app that allows users to add, edit, and delete tasks they want to work on, and also mark tasks as complete without deleting them. This article will walk you through putting the basic `App` component structure and styling in place, ready for individual component definition and interactivity, which we'll add later. | ||
| Let's say that we've been tasked with creating a proof-of-concept in React – an app that allows users to add, edit, and delete tasks they want to work on, and also mark tasks as complete without deleting them. This article will walk you through the basic structure and styling of such an application, ready for individual component definition and interactivity, which we'll add later. | ||
|
|
||
| > **Note:** If you need to check your code against our version, you can find a finished version of the sample React app code in our [todo-react repository](https://github.com/mdn/todo-react). For a running live version, see <https://mdn.github.io/todo-react/>. |
There was a problem hiding this comment.
❓ Would you like me to migrate the example implementation of the app to match these instructions as well?
There was a problem hiding this comment.
Yes please, that would be super helpful.
chrisdavidmills
left a comment
There was a problem hiding this comment.
@mxmason VERY nearly there! Lovely work, this is looking great.
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Outdated
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
mxmason
left a comment
There was a problem hiding this comment.
Annnd back to you!
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
...learn/tools_and_testing/client-side_javascript_frameworks/react_todo_list_beginning/index.md
Show resolved
Hide resolved
chrisdavidmills
left a comment
There was a problem hiding this comment.
@mxmason Ding ding, another level passed! Great work.
On to the next one ;-)
|
heya @chrisdavidmills! In case you missed it in your notifications, just wanted to let you know that I've continued this work in some other PRs: |
@mxmason Yup, I saw them, don't worry! I have just been busy on other things since I saw them. I'll make some time to look at these today, so you are not blocked. |
|
This pull request has merge conflicts that must be resolved before it can be merged. |
* chore: rewrite housekeeping * chore: clean up app jsx * chore: write boolean attributes section * chore: alphabetize css rules * chore: apply suggestions from code review Co-authored-by: Chris Mills <[email protected]> * chore: normalize CSS comments * chore: fix index file instructions * chore: clean up housekeeping * chore: terminology nits * chore: remove explicit true from large code block * chore: clarify boolean attributes * chore: clean up css comments again * chore: apply suggestions from code review Co-authored-by: Chris Mills <[email protected]> * chore: add fence for todo item styles * chore: use false in truthy warning * chore: fix invalid reference to existing css * small fix * Small update --------- Co-authored-by: Chris Mills <[email protected]>
Description
Continuing from #30177, this PR rewrites some content in the second page of the "Learn React" tutorial.
Do not merge this until #30177 has been merged and you have updated this PR with mdn main and checked for breakages.