Commit Graph

305 Commits

Author SHA1 Message Date
Yousef M. El-Gohary
46ebdc87b8 Fix hydrate root link (#4937)
* add loading indicator to sidebar links

* fix link typo
2022-08-25 19:33:31 +01:00
Dan Abramov
605ad373c4 edits 2022-08-23 12:39:12 +01:00
Dan Abramov
5a9bacdc1a Add more nuance to explanation and challenge 2022-08-23 12:20:34 +01:00
Dan Abramov
cb3b246420 Fix typos 2022-08-23 03:44:00 +01:00
dan
7cd1755ee4 [Beta] Add more challenges (#4922)
* [Beta] Add challenges for useEvent

* more
2022-08-23 03:10:36 +01:00
Ricky
caaf3c7245 [beta] Add docs for old hydrate API (#4914)
* Add docs for old hydrate API

* Add suppression example
2022-08-22 13:22:17 -04:00
Dan Abramov
bf3df38310 [Beta] Add a deep dive 2022-08-22 17:53:39 +01:00
dan
37cf98d075 Update separating-events-from-effects.md 2022-08-20 02:48:37 +01:00
dan
6d5fbad9a7 [Beta] Separating Events from Effects (#4913)
* wip

* wip

* wip

* wip

* more

* wip

* a bit more

* recap
2022-08-19 21:54:22 +01:00
Ricky
2890036c69 Add stub pages for all React and ReactDOM APIs (#4910)
* Add ReactDOM Client APIs

* Feedback fixes

* TODO and link fixes

* Update createRoot.md

* Nits

* Nits

* Update reactdomclient.md

* Update hydrateRoot.md

* Update hydrateRoot.md

* Update createRoot.md

* Update hydrateRoot.md

* createRoot tweaks

* bla

* tweaks

* tweaks

* tweak

* bump

* Add another troubleshooting error

* Add stubs for React.* APIs

* Add and organize remaining APIs

* Update links

* fix whitespace

* Add re-directs for old API URLs

* Fix some links

* Add StrictMode

Co-authored-by: dan <dan.abramov@gmail.com>
2022-08-19 12:42:44 -04:00
Ricky
c527d4ec4f [Beta] Add ReactDOM Client APIs (#4909)
* Add ReactDOM Client APIs

* Feedback fixes

* TODO and link fixes

* Update createRoot.md

* Nits

* Nits

* Update reactdomclient.md

* Update hydrateRoot.md

* Update hydrateRoot.md

* Update createRoot.md

* Update hydrateRoot.md

* createRoot tweaks

* bla

* tweaks

* tweaks

* tweak

* bump

* Add another troubleshooting error

Co-authored-by: dan <dan.abramov@gmail.com>
2022-08-19 11:38:15 -04:00
dan
4de082d220 Update createcontext.md 2022-08-18 18:11:49 +01:00
Mikhail Konin
5fed75dac5 Fix comma position (#4897)
Fix comma position at line 219 , in phrase When you need to "change things,"
2022-08-13 10:08:28 +05:30
Xuan Huang (黄玄)
8a6d966655 Add Robert Zhang (#4899) 2022-08-12 15:33:38 -07:00
Guihua Ran
4a87b19ef3 Remove the redundant code (#4898) 2022-08-12 14:07:24 +05:30
Joel Mathew Koshy
b162ea203c fixed incorrect function name in React.memo for IconDownload icon component (#4891) 2022-08-10 15:13:47 +01:00
Binoy Barman
47e1ce5d42 Update index.md (#4886) 2022-08-09 13:46:50 +02:00
Joel Mathew Koshy
4808a469fa [Beta] fixed grammatical typo in render-and-commit.md (#4881) 2022-08-07 17:20:30 +02:00
Shanmughapriyan S
37910882a2 fix: typo (#4876) 2022-08-06 00:52:51 +05:30
Dan Abramov
9fb359ffb2 Rm dead links 2022-08-05 19:54:13 +01:00
dan
5cea9c4f56 [Beta] Lifecycle of Reactive Effects (#4875)
* [Beta] Lifecycle of Reactive Effects

* rm future pages

* more
2022-08-05 19:51:57 +01:00
Joel Mathew Koshy
318981f9cd fixed having duplicate tailwind classes in pages/blog (#4872) 2022-08-05 06:39:01 +02:00
Shanmughapriyan S
a20f6378aa refactor: remove unused state (#4848) 2022-08-03 14:25:51 +05:30
rvgmiller
eed3bf3d57 Fix typo: Travel plan example (#4810)
* Fix typo: New Zealand in travel plan example

* Fix multiple typos of New Zealand in examples
2022-07-12 07:03:15 +05:30
Akul Srivastava
f67fa22cc1 fix: api links in content (#4806)
* fix: api reference links in content

* fix: link on react dom api page
2022-07-09 17:39:37 +05:30
Sunil
4d51741463 fix typo in passing-data-deeply-with-context.md (#4795)
* fix typo in passing-data-deeply-with-context.md

* Fix: typo
2022-07-07 22:33:59 +05:30
Strek
ee7705675d [Beta] Fix empty message styling in console (#4784)
* fixes empty messages added in console

* Revert "fixes empty messages added in console"

This reverts commit c978a82be6.

* add min height
2022-07-01 02:08:07 +01:00
dan
d8171faaca [Beta] Discourage derived state more (#4781)
* [Beta] Discourage derived state more

* reword
2022-06-28 19:46:48 +01:00
Akul Srivastava
807fff2850 fix: correct beta docs link in readme (#4779) 2022-06-28 22:16:36 +05:30
Danilo Woznica
eca969cd1f fix(sandpack): message listeners (#4778) 2022-06-27 17:36:57 +01:00
Balázs Orbán
c1c3d1db30 fix typos (#4767)
* fix typo

* Update you-might-not-need-an-effect.md

* Update you-might-not-need-an-effect.md
2022-06-23 01:13:52 +01:00
Dan Abramov
8fb5a45d60 typo fix 2022-06-22 23:31:59 +01:00
dan
5187ed6bbd [Beta] You Might Not Need an Effect (#4766) 2022-06-22 23:15:15 +01:00
Akul Srivastava
f71c82fcd4 fix(docs): remove redundancy (#4764) 2022-06-22 17:49:04 +05:30
Joshua Marantz
d8cd1ce416 fix broken link to react router docs (#4763)
Docs for React Router 6.4+ have moved from the "remixing" to "dev" branch.
2022-06-21 11:34:27 +05:30
moe
75bda80a63 fix sandbox tab button styles when selected (#4751) 2022-06-17 14:03:58 +01:00
Dongho
d2da1a55d2 Remove useless comma (#4711)
Found an additional comma typo when I implemented this example with typescript.
2022-06-16 19:33:36 +05:30
Dan Lebo
388905f9a0 Refresh sandbox iconography (#4746)
* Refresh sandbox iconography

* Remove extra margins
2022-06-14 23:26:54 +01:00
dan
c4817ff73c [Beta] Update the bundler (#4744)
Should fix stale console logs when resetting a sandbox.
2022-06-14 12:04:05 +01:00
Dan Abramov
1ef18feef3 Clear should not collapse 2022-06-14 12:02:01 +01:00
Dan Abramov
007fe55200 Expand console by default 2022-06-14 11:14:04 +01:00
Dan Abramov
ac0985f8ad typo 2022-06-14 05:04:18 +01:00
Dan Abramov
4b0e370851 [Beta] Shorten the last section on effects 2022-06-14 04:46:42 +01:00
Dan Abramov
b113f83071 Add missing part to the example 2022-06-14 02:26:35 +01:00
Dan Abramov
3c2611e805 typo 2022-06-14 02:23:58 +01:00
Dan Abramov
ad4b83234a [Beta] Capitalize effects 2022-06-14 02:16:39 +01:00
dan
e817499383 [Beta] Synchronizing with Effects (#4742)
* [WIP] Effects

* More

* More

* Typo

* More

* tweaks

* typo

* note

* Add playsinline

* Fix

* Typo

* Oops

* More content

* Compress a bit

* edits

* oops

* Tweaks

* tweak

* Inline the deep dive

* fix

* typos

* add deep dive

* oops

* Clarify

* Add third case

* oops

* edit

* [beta][effects] Reword effects-in-render counterexample (#4722)

* reframe

* oops

* ok

* edits

* fix

* remove special styling

* tweak

* oops

* tweak

* challenges

* tweaks

Co-authored-by: Sophie Alpert <git@sophiebits.com>
2022-06-14 01:16:16 +01:00
Strek
6d965422a4 [Beta] Add console to sandboxes (#4672)
* added code for sandpack console

* add log

* added console for older bundle

* Revert "[beta] Sandpack - new bundler (#4458)"

This reverts commit 3ab1245314.

* adds proper console and removes new bundle

* modify styles

* remove unwanted code

* nit

* fix types (#4677)

* update console

* little nits

* remove unwanted code changes

* update bundler URL

* use `message.firstLoad` for clearing console

* use `refresh` event to clear logs as well (used when going away and coming back to sandpack)

* remove padding for code blocks inside console

* small UI revamps

* change p to div since the sandpack comes inside the p, add try catch and a try catch for the catch again

* tweaks

* Fixes

* Reset unrelated changes

* tweaks

* fix

* fixes

* oops

* Fix

* fix

Co-authored-by: Danilo Woznica <danilowoz@gmail.com>
Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
2022-06-10 20:35:05 +01:00
Danilo Woznica
e4d807d0e4 [Beta] fix(navigation): ui tweak (#4709)
* fix(navigation): ui tweak

* revert border color
2022-06-10 19:27:10 +01:00
Jake Boone
6240fed568 docs: fix incomplete sentences in useref.md (#4731) 2022-06-10 16:17:33 +01:00