Skip to content

Comments

MDN React tutorials #2: Todo list beginning#30453

Merged
chrisdavidmills merged 24 commits intomdn:mainfrom
mxmason:ej/react-rewrite-2
Dec 21, 2023
Merged

MDN React tutorials #2: Todo list beginning#30453
chrisdavidmills merged 24 commits intomdn:mainfrom
mxmason:ej/react-rewrite-2

Conversation

@mxmason
Copy link
Contributor

@mxmason mxmason commented Nov 22, 2023

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.

@github-actions github-actions bot added the Content:Learn:Client-side Content under “Client-side JavaScript frameworks” (Svelte, React, Angular, Vue) and related subtrees label Nov 22, 2023
@github-actions
Copy link
Contributor

github-actions bot commented Nov 22, 2023

Preview URLs

(comment last updated: 2023-12-21 11:03:13)

Copy link
Contributor Author

@mxmason mxmason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, @chrisdavidmills. This is ready for you!

@mxmason mxmason marked this pull request as ready for review November 22, 2023 16:02
@mxmason mxmason requested a review from a team as a code owner November 22, 2023 16:02
@mxmason mxmason requested review from hamishwillee and removed request for a team November 22, 2023 16:02
@chrisdavidmills chrisdavidmills changed the title Learn React update 2: The updatening DO NOT MERGE: MDN React tutorials #2: Todo list beginning Nov 23, 2023
@chrisdavidmills chrisdavidmills requested review from chrisdavidmills and removed request for hamishwillee November 23, 2023 08:35
@bsmth bsmth added the do not merge [PR only] Not ready to land label Nov 23, 2023
Copy link
Member

@pepelsbey pepelsbey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mxmason. OK, I've gone through this one, and it's mostly looking fine. Very little to report ;-)

@chrisdavidmills
Copy link
Contributor

chrisdavidmills commented Nov 23, 2023

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.

@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).

Copy link
Contributor Author

@mxmason mxmason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Back to you, @chrisdavidmills!

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/>.
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ Would you like me to migrate the example implementation of the app to match these instructions as well?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes please, that would be super helpful.

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mxmason VERY nearly there! Lovely work, this is looking great.

Copy link
Contributor Author

@mxmason mxmason left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annnd back to you!

Copy link
Contributor

@chrisdavidmills chrisdavidmills left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mxmason Ding ding, another level passed! Great work.

On to the next one ;-)

@mxmason
Copy link
Contributor Author

mxmason commented Nov 27, 2023

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:

@chrisdavidmills
Copy link
Contributor

chrisdavidmills commented Nov 28, 2023

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:

* [DO NOT MERGE: MDN React Tutorials #3: Componentizing #30514](https://github.com/mdn/content/pull/30514), and

* [MDN intro to client-side frameworks update: intro & framework main features #30515](https://github.com/mdn/content/pull/30515)

@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.

@github-actions github-actions bot added the merge conflicts 🚧 [PR only] label Nov 28, 2023
@github-actions
Copy link
Contributor

This pull request has merge conflicts that must be resolved before it can be merged.

@github-actions github-actions bot removed the merge conflicts 🚧 [PR only] label Nov 29, 2023
@chrisdavidmills chrisdavidmills removed the do not merge [PR only] Not ready to land label Dec 21, 2023
@chrisdavidmills chrisdavidmills changed the title DO NOT MERGE: MDN React tutorials #2: Todo list beginning MDN React tutorials #2: Todo list beginning Dec 21, 2023
@chrisdavidmills chrisdavidmills merged commit 951fa8a into mdn:main Dec 21, 2023
dipikabh pushed a commit to dipikabh/content that referenced this pull request Jan 17, 2024
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:Learn:Client-side Content under “Client-side JavaScript frameworks” (Svelte, React, Angular, Vue) and related subtrees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants