You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 (
<button>I'm a button</button>
);
}
Now that you’ve declared MyButton, you can nest it into another component:
export default function MyApp() {
return (
<div>
<h1>Welcome to my app</h1>
<MyButton />
</div>
);
}
The text was updated successfully, but these errors were encountered:
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:
Now that you’ve declared MyButton, you can nest it into another component:
The text was updated successfully, but these errors were encountered: