Commit Graph

6233 Commits

Author SHA1 Message Date
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
Néstor Guillermo Hernández
22d98782b9 Update correct link common.md (#6125) 2023-08-10 15:29:00 -07:00
Ricky
ae06008d57 Add UI for canary releases (#6173)
* [WIP] Add UI for canary releases

* yellow

* Switch to icon and gray

* Wording, alignment, and rm flex

* Heading alignment
2023-08-10 17:10:58 -04:00
Natsuo Kawai
fcc639b062 Fix IDs specified in the MDN page URLs (#6176) 2023-08-10 16:49:36 -04:00
Ricky
03c2e965c3 Fix recipe titles (#6209) 2023-08-09 22:46:03 -04:00
Ricky
c60bcac830 Fix TerminalBlock overflow (#6208) 2023-08-09 21:53:23 -04:00
Orta Therox
f82f392287 Adds a TypeScript overview page (#6120)
* Start of the typescript page

* Intro

* Intro

* Use State

* Use Reducer

* Start of context

* Use Ref

* Events

* Wrap up 1st draft

* Better titles

* Apply suggestions from code review

Co-authored-by: Tom Sherman <the.tomsherman@gmail.com>
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>

* Note types/react and types/react-dom, and tone down the usecontext null check

* Feedback

* Given a 2nd run through of the doc

* Apply suggestions from code review

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

* Document where `State` is coming from

* Link what inferred types are

* Remove "knock-on"

We already say "cause" which makes "knock-on" a bit redundant

* Move useRef TS usage to useRef reference page

dropped useEffect since there's nothing specific about this hook.

* Add installation section

* Link to framework specific guides

* Edits

* Edit footer

* Rm useRef docs

---------

Co-authored-by: Tom Sherman <the.tomsherman@gmail.com>
Co-authored-by: Lenz Weber-Tronic <mail@lenzw.de>
Co-authored-by: Ricky <rickhanlonii@gmail.com>
Co-authored-by: Sebastian Silbermann <sebastian.silbermann@klarna.com>
2023-08-09 12:10:31 -04:00
TimLi
cd13b52ec1 Fix homepage title (#5838)
* Fix homepage title

Fixed homepage title bug, now the homepage will display the title from `content/index.md` instead of the constant `React`.

* Update index.md

Change title to "React" to keep same
2023-08-07 15:51:55 -04:00
Matan Borenkraout
a472775b7c docs: fix a broken link in react-labs-june-2022 (#6149) 2023-07-25 10:35:34 -04:00
Ahmed Abdelbaset
19c0fe2dcc fix componentdidcatch (#6107) 2023-07-24 21:29:02 -04:00
Hyejun Lee
505f6510a3 Fix root-unmount returns (#6137) 2023-07-24 21:14:44 -04:00
Jiman Jeong
b452e7b613 docs: separate dot from hyperlink (#6140) 2023-07-24 21:11:36 -04:00
Afonso Jorge Ramos
39b9692cd5 Update conferences timeline (#6159) 2023-07-24 21:03:40 -04:00
Soichiro Miki
6ebe2dd76d Fix "onFocus" description (#6168)
The "onFocus" is fired when an element receives focus, not loses.
2023-07-24 21:00:15 -04:00
Soichiro Miki
a132d8f355 Remove junk lines in common.md (#6167) 2023-07-24 20:59:14 -04:00
Soichiro Miki
cf4ad1999a Fix typo: "server-only" to "client-only" (#6164) 2023-07-24 20:57:55 -04:00
Ricky
d86cfc4763 Update useInsertionEffect docs (#6172) 2023-07-24 10:05:08 -04:00
Ricky
b9eea4da28 Fix lint warnings (#6174) 2023-07-21 19:24:36 -04:00
Brandon Dail
a30e1f954d update link to fault tolerance blog post (#6142)
this is the canonical link now 🫡
2023-07-10 13:56:39 +05:30
Sophie Alpert
292534e975 Add basic reference pages for use client and server (#5976)
* Add basic reference pages for use client and server

I guess this turned into a bit more of an FAQ but I think it's useful to have this written down in a canonical place.

* Oops, push final tweaks
2023-06-30 11:59:55 -07:00
yuta-ike
f5ffb3f0fb fix: broken link (#6115) 2023-06-26 11:25:19 +05:30
Christophe Porteneuve
9a1e1c61fc Fix incorrect inner component reference (#6044)
The inner component is `EditForm`, not `EditContact`.
2023-06-09 13:18:21 +05:30
Cole Milne
940e963798 Move recent conferences from 'Upcoming' to 'Past' section (#6089) 2023-06-08 23:29:56 +05:30
Ahmed Abdelbaset
8313857315 Fix(github-actions): Update gh-actions dependencies to versions that utilize Node.js v16 (#6084)
* Update site_lint.yml

* Update site_lint.yml
2023-06-05 13:36:56 +01:00
Ahmed Abdelbaset
ca93140eb9 Fix option's mdn link (#6080) 2023-06-02 17:12:16 +05:30
J
4184c0f560 Fix a missing word in useLayoutEffect (#6078) 2023-05-31 15:15:21 +01:00
Serhii Palamarchuk
ad4f5c7c95 Update NextJs link (#6053) 2023-05-30 17:57:57 +01:00
Tunzeki
3364c93feb Fix typo: change "intermedinate" to "indeterminate" (#6062) 2023-05-24 00:04:02 +01:00
Soichiro Miki
09185bcea9 Fix a wrong explanation in "Manipulating the DOM with Refs" (#6055)
* Fix manipulating-the-dom-with-refs

* Update manipulating-the-dom-with-refs.md

---------

Co-authored-by: dan <dan.abramov@gmail.com>
2023-05-23 15:16:39 +01:00
Viacheslav Makarov
398ace5b5e Add missing 'it' (#6061) 2023-05-23 15:01:09 +01:00
Sophie Alpert
1b5e8861ab Upgrade React and Next (#6011)
* Upgrade React and Next

* Fix bug in useNestedScrollLock

I guess refs get disconnected before passive effect cleanup runs. useLayoutEffect would also fix it but maybe this is better.
2023-05-19 17:44:58 +01:00
Kathryn Middleton
5bc25d3c36 Add accessibility note to interactivity section in the new React docs (#6026)
* Add accessibility note to interactivity section in the new React docs

* Add a11y note to Responding to Events section

* Update responding-to-events.md

---------

Co-authored-by: dan <dan.abramov@gmail.com>
2023-05-18 17:48:40 +01:00
vicsantizo
bea2ff778d fix(typos): replace word "ever" with "every" (#6039) 2023-05-16 19:01:59 +01:00
Choi siun
fd8ba03f4d docs(types): Fix incorrect period positioning in common.md (#6040) 2023-05-16 19:01:40 +01:00
Viacheslav Makarov
ebc45f563e Remove unnecessary backticks breaking markdown highlighting (#6025) 2023-05-12 17:15:37 +01:00
Sami Romdhana
da93812c78 Conditionally render offset div (#5997)
Otherwise the address is being offset to the right when the refresh icon is not displayed
2023-05-06 23:06:40 +01:00
Jan Kassens
07a3ee594f Minor tweak to remove implication that mounting can happen only once (#6003)
Mounting with Suspense and Offscreen can happen multiple times. This removes some wording that implies a that effects / lifecycle hooks only happen on first mount.
2023-05-05 18:58:18 +01:00
Hernani Fernandes
01d44e9a38 remove cancelled conference 2023 (#5999) 2023-05-05 17:06:39 +01:00
declval
fe5737bd03 Update Profiler.md (#6000) 2023-05-05 17:01:29 +01:00