Commit Graph

5414 Commits

Author SHA1 Message Date
dan
41c3ca570f Document the new consistent Suspense behavior (#4517)
* Document the new consistent Suspense behavior

* Update 2022-03-08-react-18-upgrade-guide.md

* Update 2022-03-08-react-18-upgrade-guide.md
2022-03-29 23:13:07 +01:00
Nick Morris
c336758e96 Add missing word (#4514)
"without the use an" =>  "without the use of an"
2022-03-30 01:41:12 +05:30
igor-co
1138f7a89d Fix link on upgrade to version 18 page (#4516)
Co-authored-by: igor-co <icojocaru-ext@tracasa.es>
2022-03-30 01:40:38 +05:30
Steven
22b8bf2ff1 Next -> Next.js (#4515)
Similar to #4508
2022-03-30 00:23:15 +05:30
Nicola Corti
4725bbc9a1 Clarify note for React Native users (#4512)
* Clarify note for React Native users

Just clarifying expectations for React Native users on when React 18 will be available there.

* Update content/blog/2022-03-08-react-18-upgrade-guide.md

Co-authored-by: Ricky <rickhanlonii@gmail.com>

Co-authored-by: Ricky <rickhanlonii@gmail.com>
2022-03-29 14:28:02 -04:00
Yuki Takemoto
8ee0706201 Fix broken link (#4509) 2022-03-29 22:04:44 +05:30
Sebastian Markbåge
34b00843ca Next -> Next.js (#4508) 2022-03-29 12:29:44 -04:00
Ricky
74246c13b9 React 18 (#4499)
* [18] ReactDOM reference to createRoot/hydrateRoot (#4340)

* [18] ReactDOM reference to createRoot/hydrateRoot

* Update note about render and hydrate

* Match the warning text

* s/Render/render

* [18] Update ReactDOMClient docs (#4468)

* [18] Update ReactDOMClient docs

* Remove ReactDOMClient where it's obvious

* Update browser message

* Update browser message note

* Update based on feedback

* Add react-dom/client docs

* [18] Upgrade homepage examples (#4469)

* [18] Switch code samples to createRoot (#4470)

* [18] Switch code samples to createRoot

* Feedback fixes

* Feedback updates

* [18] Use hydrateRoot and root.unmount. (#4473)

* [18] Add docs for flushSync (#4474)

* [18] Add flushSync to ReactDOM docs

* Seb feedback

* More Seb feedback

* [18] Bump version to 18 (#4478)

* [18] Update browser requirements (#4476)

* [18] Update browser requirements

* Update based on feedback

* [18] Add stubs for new API references (#4477)

* [18] Add stubs for new API references

* Change order/grouping

* [18] Redirect outdated Concurrent Mode docs (#4481)

* [18] Redirect outdated Concurrent Mode docs

* Use Vercel redirects instead

* [18] Update versions page (#4482)

* [18] Update version page

* Fix prettier

* [18] Update React.lazy docs (#4483)

* [18] Add docs for useSyncExternalStore (#4487)

* [18] Add docs for useSyncExternalStore

* rm "optional"

* [18] Add docs for useInsertionEffect (#4486)

* [18] Add docs for useId (#4488)

* [18] Add docs for useId

* Update based on feedback

* Add Strict Effects to Strict Mode (#4362)

* Add Strict Effects to Strict Mode

* Update with new thinking

* [18] Update docs for useEffect timing (#4498)

* [18] Add docs for useDeferredValue (#4497)

* [18] Update suspense docs for unexpected fallbacks (#4500)

* [18] Update suspense docs for unexpected fallbacks

* Add inline code block

* Feedback fixes

* [18] Updated Suspense doc with behavior during SSR and Hydration (#4484)

* update wording

* wording

* update events

* Update content/docs/reference-react.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* add link to selective hydration

* remove some of the implementation details

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* [18] renderToPipeableStream doc (#4485)

* new streaming ssr api

* add readable stream

* code snippets

* Rename strict effects / unsafe effects to use the reusable state terminology (#4505)

* Add draft of 18 release post

* Add links to speaker Twitter profiles

* [18] Update upgrade guide

* Fix typo in blog title

* [18] Blog - add note for react native

* [18] Add changelog info to blog posts

* Edit Suspense for data fetching section

* Update date

* [18] Add links

* Consistent title case

* Update link to merged RFC

* [18] Update APIs and links

* [18] Add start/useTransition docs (#4479)

* [18] Add start/useTransition docs

* Updates based on feedback

* [18] Generate heading IDs

* Add note about Strict Mode

* Just frameworks

* Reorder, fix content

* Typos

* Clarify Suspense frameworks section

* Revert lost changes that happened when I undo-ed in my editor

Co-authored-by: salazarm <salazarm@users.noreply.github.com>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
Co-authored-by: Sebastian Markbåge <sebastian@calyptus.eu>
Co-authored-by: Andrew Clark <git@andrewclark.io>
Co-authored-by: dan <dan.abramov@gmail.com>
2022-03-29 12:03:23 -04:00
victor0x16
ac68ced36e example should import useReducer (#4504) 2022-03-28 14:51:41 +01:00
Nick Tishkevich
b099d558d2 Update conferences.md. Add a link on a live stream of a conference < React Global > (#4495) 2022-03-28 17:26:39 +05:30
Victoria Quirante
5e9d673c6b Add React Alicante (#4496) 2022-03-26 23:04:46 +05:30
James Herdman
7200653b44 Update conditional-rendering.md to fix formatting (#4493)
A slight inconsistency in the formatting used throughout for `{` `}`.
2022-03-26 17:24:48 +00:00
Manoj Kumar M
9b5505e265 updated egghead url (#4494) 2022-03-25 17:26:49 +00:00
DavidKessel
335417aa97 fix typo on page (#4490)
Co-authored-by: David <mail.dakes@online.de>
2022-03-24 23:27:58 +00:00
dependabot[bot]
61a6cd7722 Bump prismjs from 1.25.0 to 1.27.0 (#4386)
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.25.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-22 16:45:22 +05:30
Ricky
1e3b023d31 Add diagrams for Preserving and Resetting State (#4439)
* Add diagrams for Preserving and Resetting State

* Dark mode

* Add alt text and fix file names

* Feedback updates
2022-03-19 13:10:45 -04:00
salazarm
105fb7956d update code sandboxes (#4466) 2022-03-17 16:30:38 -04:00
Strek
67f0bba2db Moved older conference to past conference and standardised dates (#4463) 2022-03-17 22:37:33 +05:30
Jan Jaworski
a55219d3b8 Add React Native EU to upcoming conferences (#4465)
Add info about React Native EU to upcoming conferences. Organised by Callstack.
2022-03-17 22:37:08 +05:30
dan
69f90d25b5 [Beta] createContext API (#4467)
* [Beta] createContext API

* Add to index

* Add a link
2022-03-16 20:46:13 +00:00
Geekle Team
972f1772ca Update conferences.md (#4459)
Updated the name and the date of our event
2022-03-16 13:12:49 +05:30
James McDonald
7cf3cc1d44 Update tutorial.md (#4461) 2022-03-16 08:24:28 +01:00
Dan Abramov
c0b6e0bbb1 Add more exports 2022-03-16 01:40:00 +00:00
dan
f7f92b88e9 [Beta] useReducer API (#4441) 2022-03-16 01:36:52 +00:00
Ricky
2f05f3f3d2 Add diagram to Reacting to Input with State (#4434) 2022-03-14 17:26:14 -04:00
Ricky
0ff869ffde Add diagrams for passing props with context (#4394)
* Add diagrams for passing props with context

* Update beta/src/pages/learn/passing-data-deeply-with-context.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update beta/src/pages/learn/passing-data-deeply-with-context.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update beta/src/pages/learn/passing-data-deeply-with-context.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Fixes for mobile

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2022-03-14 17:18:23 -04:00
Simen Bekkhus
b13640a8fb fix: use globalThis over global (#4448) 2022-03-14 16:39:59 -04:00
Ricky
90ae8466a2 Add diagrams for "Putting markup into JavaScript" (#4390)
* Add diagrams for "Putting markup into JavaScript"

* Update alt tags

* Fix isLoggedIn

* Minor style updates for mobile
2022-03-14 12:09:53 -04:00
Justin E. Samuels
9525c0682f Updated Render-Atlanta 2022 (#4343)
Changes for date and podcast for Render ATL
2022-03-14 11:36:34 -04:00
DeltaZN
dbbb097262 Update invalid-aria-prop.md (#4457) 2022-03-14 14:38:20 +01:00
Strek
7994045415 Fixes survey (#4451) 2022-03-12 10:22:07 +05:30
Xuan Huang (黄玄)
3c3d8ace70 Add Xuan to team page (#4454)
* Add Xuan To The Team

* Don't forget to add to the Beta site as well
2022-03-11 19:47:01 -05:00
Strek
d3b66f5e4c Fixes linting issues (#4452) 2022-03-11 10:56:22 +05:30
dependabot[bot]
4b7843ae39 Bump urijs from 1.19.7 to 1.19.10 (#4446)
Bumps [urijs](https://github.com/medialize/URI.js) from 1.19.7 to 1.19.10.
- [Release notes](https://github.com/medialize/URI.js/releases)
- [Changelog](https://github.com/medialize/URI.js/blob/gh-pages/CHANGELOG.md)
- [Commits](https://github.com/medialize/URI.js/compare/v1.19.7...v1.19.10)

---
updated-dependencies:
- dependency-name: urijs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-03-11 10:33:44 +05:30
Ricky
05177fffb4 React 18 RC - Upgrade Guide (#4384)
* Blog Draft: React 18 RC Upgrade Guide

* Update content/blog/2022-02-25-react-v18-rc.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update content/blog/2022-02-25-react-v18-rc.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update content/blog/2022-02-25-react-v18-rc.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update content/blog/2022-02-25-react-v18-rc.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update content/blog/2022-02-25-react-v18-rc.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update content/blog/2022-02-25-react-v18-rc.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update content/blog/2022-02-25-react-v18-rc.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Minor updates

* Update content/blog/2022-02-25-react-v18-rc.md

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>

* Update Strict Effect section

* Fill in testing section

Some info about how to configure global.IS_REACT_ACT_ENVIRONMENT

* Minor updates

* Update react-dom imports

Use named imports

* Add link to react-testing-library

* Remove Suspense specifics

* Update to react-dom/client

* Updates to SSR

* Minor updates

* Fix typo

* Minor updates to wording

* Minor updates to wording

* Tweak call to action

I edited the intro section a bit to soften the call to action.

I also removed the reference to the "second RC" since we may
publish another one and the fact that it's the second one
isn't that important.

Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
Co-authored-by: Andrew Clark <git@andrewclark.io>
2022-03-08 13:00:38 -05:00
Dan Abramov
c64b202b9e Add linebreak 2022-03-07 18:34:06 +00:00
Dan Abramov
8b5ce4dcb5 Fix mobile layout on beta 2022-03-07 18:24:17 +00:00
Ricky
a08e1fd4b5 Fixes for banner on beta (#4435) 2022-03-06 10:43:05 -05:00
Dmitry Vinnik | Meta
d90fd21fdb docs: Adding Social Banner in Support of Ukraine (#4397)
* Adding Social Banner with Support for Ukraine

* Changing spacing the social banner

* Fixing lint errors

* Remove external link icon from social banner

* Add banner for beta site

* Add todo

* Fix centering on mobile in old site

Co-authored-by: Rick Hanlon <rickhanlonii@gmail.com>
2022-03-02 11:07:19 -05:00
Sha Mwe La
6c95de96f7 [Beta] Delete unused variables (#4379)
* Delete unused variables

* Change event to e

* Change e to evt
2022-03-01 13:36:37 +05:30
dependabot[bot]
6bd09fe682 Bump url-parse from 1.5.3 to 1.5.10 (#4391)
Bumps [url-parse](https://github.com/unshiftio/url-parse) from 1.5.3 to 1.5.10.
- [Release notes](https://github.com/unshiftio/url-parse/releases)
- [Commits](https://github.com/unshiftio/url-parse/compare/1.5.3...1.5.10)

---
updated-dependencies:
- dependency-name: url-parse
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-02-27 16:14:40 +05:30
Dan Abramov
31304b8057 Oops 2022-02-25 03:34:21 +00:00
dan
299dad85be [Beta] useContext API (#4378)
* [Beta] useContext API

* Simplify + add

* Tweaks

* Softer

* Tweaks

* Small tweaks
2022-02-24 22:00:02 +00:00
Ricky
ac9a984a5b Add diagrams to Quick Start (#4377)
* Add diagrams to Quick Start

* Switch to svg

* Switch dark mode image

* Rework file names, minor dark mode updates

* Update alt tags and descriptions
2022-02-24 11:29:38 -05:00
dan
8314493274 Fix focus rings 2022-02-23 20:10:08 +00:00
Dan Abramov
b6a181c526 Fix editable code blocks 2022-02-23 18:02:00 +00:00
Sha Mwe La
1b05b11188 Remove transform (#4375) 2022-02-23 16:08:10 +00:00
Sha Mwe La
508b427937 Improve ESLint (#4372) 2022-02-22 19:10:15 +00:00
Strek
275d03f1c0 Upgrade sandpack to fix code cutting issue in view only editor (#4371)
* Upgrade sandpack to fix code cutting issue in view only editor

* Added proper sandpack version
2022-02-22 13:45:41 +00:00
Anjorin Damilare
9bcbe7ba5f [beta] bump tailwind to v3 and update config (#4366)
* [beta] bump tailwind to v3 and update config

* fix widget wrong position

* fix content tailwind config
2022-02-21 21:40:33 +00:00