petehunt / react-howto

Your guide to the (sometimes overwhelming!) React ecosystem.
11.61k stars 770 forks source link

link to "the official tutorial" for React is dead on README.md #118

Open lancegrandis opened 1 month ago

lancegrandis commented 1 month ago

The link for step one, "the official tutorial", is dead.

It results in a 404:

Request URL: https://facebook.github.io/react/docs/tutorial.html Request Method: GET Status Code: 307 Internal Redirect (from disk cache) => Request URL: http://react.dev/docs/tutorial.html Request Method: GET Status Code: 404 Internal Redirect => Request URL: https://react.dev/docs/tutorial.html Request Method: GET Status Code: 404 Not Found

Seemingly, the current starting point is here, where the introduction involves a bit of js and html describing components. How does this below compare to the original intro?

Creating and nesting components

React apps are made out of components. A component is a piece of the UI (user interface) that has its own logic and appearance. A component can be as small as a button, or as large as an entire page. React components are JavaScript functions that return markup: ``` function MyButton() { return ( ); } ``` Now that you’ve declared MyButton, you can nest it into another component: ``` export default function MyApp() { return (

Welcome to my app

); } ```