Commit Graph

6271 Commits

Author SHA1 Message Date
Matt Carroll
c0e6612ee0 Taint reference edits, add to sidebar 2023-10-06 11:51:06 -07:00
Sebastian Markbage
7628fb2b44 missing word "environment" 2023-10-04 23:03:23 -04:00
Sebastian Markbage
5a9fe7b867 Add Experimental Taint API Docs 2023-10-04 23:02:04 -04:00
Sebastian Silbermann
68f417a600 Explain how null ends up in ref.current for React-managed refs (#5836)
* Update referencing-values-with-refs.md

* Update src/content/learn/referencing-values-with-refs.md
2023-10-01 12:16:27 +02:00
Alain Kaiser
1dfc88fe46 fix: typo in useMemo example (#6330) 2023-10-01 14:55:16 +05:30
Sourabh singh
d4c214ad10 Update Page not found to React18 URL (#6320)
* Update react-labs-what-we-have-been-working-on-june-2022.md

* Update react-labs-what-we-have-been-working-on-june-2022.md
2023-09-28 17:23:39 +05:30
Lee Robinson
850327d056 Update "Start a new React project" for stable Next.js App Router (#6020) 2023-09-27 22:55:16 -04:00
Krzysztof Piaskowy
8afb1ef5fc Add info about App.js 2024 conference (#6192)
Co-authored-by: Luna <lunaleaps@gmail.com>
2023-09-26 14:00:24 -04:00
Matan Borenkraout
01c31630f9 fix: wrong parameter name defined in explanation (#6158) 2023-09-26 00:10:41 -04:00
jajima
2dbd19531f Fix an incorrect person's name (#6066) 2023-09-25 23:56:16 -04:00
JustLolo
62b9b4519b Main (#5963) 2023-09-25 23:34:02 -04:00
Luna
4df3e7cf18 Remove pitfall and update Next link (#6318)
* Remove pitfall and update Next link

* Fix other beta link

---------

Co-authored-by: Luna Wei <luwe@fb.com>
2023-09-25 22:53:26 -04:00
Ahmed Abdelbaset
91e7f697d8 Update tutorial error message to use ConsoleBlock 2023-09-25 08:08:59 -07:00
Xavi Lee
2390627c9c fix links (#6286) 2023-09-22 23:01:57 -07:00
Mori
1758515a20 Fix text in docs (#6253)
* delete unused useState import

* add word to equalize challenge and solutions texts

* Refactor some texts

* Apply suggestions from code review

---------

Co-authored-by: Sophie Alpert <git@sophiebits.com>
2023-09-22 21:33:22 -07:00
JSerDev
a1fbcf8e26 Update useEffect.md - The explanation on the timing of useEffect() callback doesn't seem to be accurate. (#6207)
* Update useEffect.md

* Update src/content/reference/react/useEffect.md

---------

Co-authored-by: Sophie Alpert <git@sophiebits.com>
2023-09-22 21:21:47 -07:00
Gabriel Taveira
828e30a876 chore: log heading missing url error on dev only (#6280) 2023-09-22 21:11:46 -07:00
Soheil Nazari
2ab8334171 Update common.md (#6290)
corrected links
2023-09-22 21:10:41 -07:00
Joseph Savona
bad7e90edf Update team page (#6310) 2023-09-22 08:16:45 -07:00
Dan Abramov
5f3565fd3d Fix like button color 2023-09-21 15:21:10 +01:00
Soichiro Miki
dfd15e87a2 Remove "robot=noindex" meta tag (#6260) 2023-09-20 11:47:47 +01:00
Christophe Porteneuve
cbeb0ba2f6 Add French to fully-translated languages (#6305) 2023-09-20 00:31:41 +01:00
Soichiro Miki
bdc60c2684 FIx typo: props => context (#6300) 2023-09-14 10:12:14 +05:30
anita-that-chiq
0d21915928 Replace label with placeholder (#6295) 2023-09-13 11:07:43 +05:30
Danilo Woznica
43ada1f1b1 Sandpack 2.0: upgrade playgrounds (#5917)
* Update 17 files

* remove: legacy react devtool

* Update 3 files

* fix(editor): allow horizontal scroll

* Update SandpackRoot.tsx
2023-09-12 13:49:14 -04:00
Abhinav Mahajan
5219d736a7 Removed the multiple checks (#5759) 2023-09-08 18:20:59 -07:00
Matt Carroll
742d2bff8f Add use hook API reference page (#6177)
* [WIP] Add use hook API reference page

* [WIP] Update use hook API reference page based on feedback

* [WIP] use hook API ref doc: add browser API example

* [WIP] use hook API ref doc: add context, lib examples

* [WIP] use reference doc - incorporate all current feedback

* [WIP] use reference page fix typos

* use reference doc: address PR feedback from Luna, Sophia,Eli, and Lee

* Apply @harish-sethuraman's typo fixes from code review

Co-authored-by: Strek <ssharishkumar@gmail.com>

* use reference doc typo fixes

* use reference doc: update style to match other react.dev conventions

* minor fixes

* Remove client Promises, use canary labels

* Add use hook section to index, remove RSC section on components page

* Final edits

* Clarify use reference caveats

---------

Co-authored-by: Strek <ssharishkumar@gmail.com>
2023-09-08 10:33:16 -07:00
Drew Nollsch
46e7b2c687 Fixes error in cloneElement code example (#6291) 2023-09-08 17:01:17 +01:00
Sophie Alpert
20ccdf9291 Update lazy.md to mention default exports (#6285)
React.lazy dots into the `default` property. Document this.
2023-09-07 11:38:21 -07:00
ramadevsign
ee98f75cf1 add rendercon kenya 2023 to conferences (#6133) 2023-09-06 14:12:29 -07:00
Aleksandar15
9e144cdd5a Fix typo in preserving-and-resetting-state.md (#6194) 2023-09-06 14:07:02 -07:00
Luna
7141306c90 Add cache API docs (#6240)
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Luna Wei <luwe@fb.com>
Co-authored-by: Ricky Hanlon <rickhanlonii@gmail.com>
2023-09-06 10:50:03 -07:00
Minu Kim
df9d90764a Fix flushSync.md grammar (#6282) 2023-09-06 01:48:30 -07:00
Néstor Guillermo Hernández
14629a7e19 Fix incorrect link in select.md (#6227)
Fix incorrect link in select.md
2023-09-05 14:39:45 -07:00
Max Jacobson
230c39bd91 Fix link in new typescript docs (#6232)
While reading the new typescript docs introduced in #6120, I noticed this link points to a fork. This commit changes it to a relative link so it should work everywhere.
2023-09-05 13:35:49 -07:00
Rohit Sekh
cd09ffbc35 Update Twitter(X) icon for light and dark mode (#6235)
Update Twitter(X) icon for light and dark mode
2023-09-05 11:25:56 -07:00
Justin E. Samuels
05380da53e Update conferences.md (#6256)
Added RenderATL 2024 to the conferences Markdown page
2023-09-05 09:15:13 -07:00
Saksham Gupta
be6c39d8b7 Update tutorial-tic-tac-toe.md (#6259)
Grammar fix
2023-09-05 09:14:53 -07:00
Monica Powell
9b4c56a210 update conferences to move React Rally 23 to previous and add upcoming conferences (#6246)
* update conferences to move react rally to previous and add reactjs day

* Add React Alicante

* Update conferences.md

* Update conferences.md to include year of the event

* add anchor link

* Update conferences.md

* Update conferences.md

* chore: update country name

---------

Co-authored-by: Strek <ssharishkumar@gmail.com>
2023-09-05 14:20:45 +01:00
Yogesh Surendran
722b54640e fix(docs): remove inactive indian meetup groups (#6267) 2023-08-30 14:11:39 +05:30
Eli White
3189529259 Add React Native EU 2023 to the conferences page (#6254)
React attends this conference hosted by Callstack. It's been on the page in previous years, missed it this year.

https://www.react-native.eu/
2023-08-23 14:53:20 -07:00
Luna
f67811befe Clarify these features are not related to Next (#6229)
Co-authored-by: Luna Wei <luwe@fb.com>
2023-08-21 13:34:53 -07:00
Thomas Charuel
842c24c9ae Fix broken link for Typescript Discord invite (#6224) 2023-08-16 19:17:59 -07:00
Ahmed Abdelbaset
6b61cd490d Annex to #6138 (#6226)
* fix: wronge styles when applying RTL 

it was `top-0 left-0 ...` by wrong I made it `inset-x-0`.

* fix wrong styles

* fix wrong styles

* style canary icon with RTL-friendly styles

* chore: utilize mx-* instead of me-* & ms-*

* utilize relative styles

* chore: use mx-* instead of me-* & ms-*

* style canary icon with RTL-frindly styles

* Update OpenInTypeScriptPlayground.tsx
2023-08-15 18:24:46 -04:00
Ahmed Abdelbaset
819518cfe3 RTL Languages Support (#6138)
* Update TailwindCSS & Install rtl-detect
1- Update TailwindCSS to use the logical properities such as `ps-1` instead of `pl-1`.
there are logical properities for margin, padding, inset, and text direction.

2- Install `rtl-detect` detect if the language is RTL direction.
Note: this might be uninstalled if we use the manual way to specify rtl language.

* add `siteConfig.isRTL`

* add `dir` attribute to the root element

* edit some tw classes to utilize logical properties
instead of directions properties
(e.g. `pr-0` to `pe-0`)

* edit some tw classes to utilize logical properties
instead of directions properties
(e.g. `pr-0` to `pe-0`)

* edit some tw classes to utilize logical properties
instead of directions properties
(e.g. `pr-0` to `pe-0`)

* edit some tw classes to utilize logical properties
instead of directions properties
(e.g. `pr-0` to `pe-0`)

* Refactor TW classes: Use logical properties over directional properties.

* Revert "Refactor TW classes: Use logical properties over directional properties."

This reverts commit df9620d944.

* Refactor TW classes: Use logical properties over directional properties.

* Refactor TW classes: Use logical properties over directional properties.

* Refactor TW classes: Use logical properties over directional properties.

* Add `start` and `end` directions to the `IconNavArrow`

* Add Note about `isRTL` prop

* Refactor TW classes: Use logical properties over directional properties.

* Refactor TW classes: Use logical properties over directional properties.

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* set dir attr of `CodeBlock` to `ltr` even the page dir is `rtl`

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* Add `start` and `end` directions to some icons

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* set dir attr of `ConsoleBlock` to `ltr` to overwrite the dir of root element

* Refactor TW classes: use logical properties over directional properties

* set dir=ltr on inline code blocks to overwrite <html dir="rtl"> in some languages

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* set translate=no, dir=ltr on `TerminalBlock` to overwrite <html dir="rtl"> in rtl languages

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* Refactor TW classes: use logical properties over directional properties

* fix some direction styles

* fix arrow directions in rtl

* remove `rtl-detect` and set `siteConfig.isRTL` manually

* fix `Breadcrumbs`'s arrow direction in rtl languages

* fix some directions of the search modal for RTL languages

* hard setting dir=ltr to Sandpack to overwrite rtl languages dir

* Refactor TW classes: use logical properties over directional properties

* remove my notes

* fix: rerverse space-x-* in rtl

* rebase with the main branch

* remove unnecessary alt

* add `start` & `end` display directions to the Chevron Icon

* rebase with the main branch
2023-08-11 15:42:12 -04:00
Umair Raza
79560d6572 fix: remove Hong Kong from choosing-the-state-structure (#5957)
* fix: remove Hong Kong from choosing-the-state-structure

closes Improper examples #5955

* change boolean style for rendering
2023-08-11 00:14:24 -04:00
Hannanel Gershinsky
2bfa54411e removing reference to create-react-app (#6012) 2023-08-10 23:48:07 -04:00
Bruno Eduardo de Souza Medeiros
b1a5b7b0b0 fix(docs): Component reference render parameters (#6098) 2023-08-10 23:14:34 -04:00
Ricky
a86663da84 Fix IntersectionObserver examples (#6212) 2023-08-10 23:10:18 -04:00
Diwakar Kashyap
02c0067101 remove Bad grammar in react.dev tictactoe documentation (#6126)
* change docs

* add docs for create react app

* remove

* Update src/content/learn/tutorial-tic-tac-toe.md

---------

Co-authored-by: Ricky <rickhanlonii@gmail.com>
2023-08-10 21:37:34 -04:00