Commit Graph

2082 Commits

Author SHA1 Message Date
Strek
3aac8c5984 use proper code block (#4671) 2022-05-22 11:06:07 +05:30
Erik Rasmussen
6db368a9bc Relegate Reactathon 2022 to the annals of history (#4663) 2022-05-17 14:06:25 +01:00
Piotr Pośpiech
951fae39f0 added meetup (#4655) 2022-05-12 22:02:37 +05:30
Jie Peng
dfe5080e2b fix(reference-react): typo (#4631)
Signed-off-by: Jie Peng <im@jiepeng.me>
2022-05-06 21:46:36 +01:00
Sathvik Shanmugam
e34f5145e9 Tutorial markdown changes for React18 (#4630)
* Changing the markdown - Initial commit

* Adding the missing instruction to copy the JS and CSS from starter code

* reverting the extra text added
2022-05-05 21:20:36 +05:30
Sebastian Silbermann
3411c0d0c4 Explicitly list what methods are included in unmounting and remounting (#4618)
* Explicitly list what methods are included in unmounting and remounting

* Move up
2022-05-02 22:00:09 +02:00
lxmarinkovic
09f8bcc4c5 RactGlobal-to-past-conferences (#4609) 2022-05-01 09:48:11 +05:30
lxmarinkovic
fb12ba280c ReactNext-2022 (#4606) 2022-05-01 09:46:03 +05:30
dan
a7d2254e0d Update more examples for 18 (#4607)
* Update more examples for 18

* blargh
2022-04-27 20:12:07 +01:00
Muhammad Yasir
2a8e0a7ab5 Replaced old ReactDOM API with new React v18 API (#4598)
* Replaced old ReactDOM API with new React v18 API

Replaced old ReactDOM API with new React v18 API

ReactDOM.render(
  // Try changing to isLoggedIn={true}:
  <Greeting isLoggedIn={false} />,
  document.getElementById('root')
);

The above implementation has been replaced by the following implementation according to React v18. 

ReactDOM
  .createRoot(document.getElementById('root'))
  .render(<LoginControl />);

* Changed ReactDOM.createRoot syntax into two lines

```
ReactDOM
  .createRoot(document.getElementById('root'))
  .render(<LoginControl />);
```
has been changed to

```
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(<LoginControl />);
```

* Added a comment on <Greeting/> comp.
2022-04-27 02:17:23 +01:00
Soichiro Miki
b5c75c4290 Fix behavior of renderToStaticMarkup (#4600) 2022-04-26 02:19:49 +01:00
dan
9e29400997 Break down code into separate lines 2022-04-25 16:23:25 +01:00
Strek
1d21630e12 Update conferences.md (#4593) 2022-04-22 13:23:18 +05:30
Soichiro Miki
0d3233df60 Fix "Integrating with Other View Libraries" (#4585) 2022-04-20 19:10:53 +01:00
Dhairya
ab29c8aa1c Update conferences.md (#4589)
Adding React Norway

Co-authored-by: CookieDuster <51830273+CookieDuster@users.noreply.github.com>
2022-04-19 22:45:52 +05:30
Vaskevich Aleksander
63234808da fix the code block for createRoot typescript error (#4576)
* fix the code block for createRoot typescript error

* added example block code for typescript

* Inline example

Co-authored-by: dan <dan.abramov@gmail.com>
2022-04-13 15:25:28 +01:00
Indermohan Singh
4a7144078c fix the code block for AppWithCallbackAfterRender (#4571)
* fix the code block for AppWithCallbackAfterRender

fix the code block for AppWithCallbackAfterRender by using createRoot method from 'react-dom/client'

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

Co-authored-by: dan <dan.abramov@gmail.com>
2022-04-11 19:48:18 +01:00
Antony Budianto
84ad330833 fix typo "sever" on reference-react-dom-server.md (#4570) 2022-04-10 14:37:42 +01:00
dan
b2d16e5ac6 Mention TypeScript in the upgrade post (#4567)
* Mention TypeScript in the upgrade post

* Add a link
2022-04-08 19:36:34 +01:00
Sebastian Silbermann
42100a3448 renderToReadableStream: Ensure same var name is used in onError (#4562) 2022-04-07 19:27:13 +01:00
dan
d14cbdca24 Add more details on batching (#4559)
* Add more details on batching

* Use a generic example
2022-04-07 15:39:12 +01:00
dan
1015a73e1a Clarify renderToString etc usage 2022-04-07 01:27:08 +01:00
dan
a78cc99618 Edits for ReactDOMServer API (#4558)
* Edits for ReactDOMServer API

* Move note below example

* No destructure

* Rm hr

* Add onError

* Drop SEO

* Update reference-react-dom-server.md
2022-04-07 00:59:23 +01:00
dan
65b04292eb Document useId is not for keys (#4557) 2022-04-06 21:49:13 +01:00
Marco Antonio Ghiani
3fa71f02a2 Fix params order for hydrateRoot reference (#4552) 2022-04-06 14:43:38 +05:30
Strek
cb4c9d319f Update conferences.md (#4546) 2022-04-04 18:18:30 +05:30
Juho Vepsäläinen
cb11ae479e docs: Add React Finland 2022 (#4544) 2022-04-04 17:22:49 +05:30
dan
707f22d25f Add call to action to 18 blog post (#4542) 2022-04-03 21:37:23 +01:00
Noel Kim (김민혁)
ec2dcbc737 Update Prerequisites nodejs version (#4538)
* Update Prerequisites nodejs version

* Update how-to-contribute.md
2022-04-03 15:34:01 +01:00
Kiran Abburi
2666c95575 Added React Day Bangalore 2022 (#4539) 2022-04-03 15:25:34 +05:30
Sanghyup Jeong
c77e2f2422 Fix typo in Automatic Batching example (#4532)
Co-authored-by: sanghyupjeong-29cm <hyupee@29cm.co.kr>
2022-03-31 04:50:30 +01:00
dan
0982707a98 Update StrictMode docs about double logging (#4531) 2022-03-30 19:05:09 +01:00
Angelos Chalaris
56a0dca6fb Update CDN links for React 18 (#4528) 2022-03-30 17:06:07 +01:00
Angelos Chalaris
f5c84d47ab Update CDN links for React 18 (#4523) 2022-03-30 07:47:53 +01:00
dan
b5fd1df671 Add a note about Strict Mode to release blog post (#4521)
* Add a note about Strict Mode to release blog post

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

* Update 2022-03-08-react-18-upgrade-guide.md
2022-03-30 03:38:02 +01:00
lilac-ss
c623de4e62 fix useTransition link (#4519) 2022-03-30 03:10:59 +01:00
Sukka
69ca55b931 Fix usage of useDeferredValue (#4520) 2022-03-30 03:07:59 +01:00
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
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
salazarm
105fb7956d update code sandboxes (#4466) 2022-03-17 16:30:38 -04:00