mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-22 03:42:14 +00:00
41f1ca291af37fbb1e0ead819ad160d420eed545
* twk * more * twkg * bla * search bar, blog, misc polish * fixes * polish * fixes * polish * adding back select * change order on mobile * fixes * search fix * fix * make select chevron clickable * add isLoading boolean to example4 * wip * tweak * wip * rewire * wip * tweaks * wip * wip * twk * content * twk * twk * twk * fix * wip * adding community marquee * fix * polish * polish * optimize img * images * 8 images * stuff * swap * words * making the button fun * slightly more subtle * checking in OG images * tweak * words * lol * improve blog section * algolia.css improvements * words * fix * wat * Revert "8 images" This reverts commit31c69ed78c. * wip * 8 images * add new badge and bottom align date * change icon * rm new for now * change icon * img * Revert "change icon" This reverts commita2758b97b5. * mobile fixes for marquee * like button tweaks * polish * en dash * adding ctas * clean up images, wire up og * more subtle search * smaller divider * remove search shadow * cta * cleanup * cta * refactor * Revert "remove search shadow" This reverts commita4e0d97211. * Revert "smaller divider" This reverts commit0996b5bede. * Revert "more subtle search" This reverts commit734b5d7129. * scroll topg * tweaks * tweaks * cta * words * words * typo * batch of visual polish / touches * tweak * add subheader component * algolia css fixes * border * tweaks * tweak * polish * tweak * gradient text * flip gradient text * grad * gr * tweak * swap * reorder * rm * caps * updated fonts * top nav tweak * tweak * more rounded left/right bars * `Conferences`: Move past conferences to past section (#5544) * Move past conferences to past section * Update ordering for past conferences, most recent first * added React Nexus to conference list in beta docs (#5552) * Fix typo in flushSync docs (#5589) * fix: change experimental_useEvent to experimental_useEffectEvent in escape-hatches.md (#5573) * Fix typo in forwardRef Beta Docs Reference (#5570) * Fixed wrong debug command (#5596) * Forgotten import statement for `createElement` (#5601) Added `createElement` in the import statement since it was used within the code snippet but was not imported. * docs: fix `react-hooks/exhaustive-dependencies` typo (#5605) The rule is `exhaustive-deps`, not `exhaustive-dependencies`. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> * fix: correct prev link in `hello-world` (#5595) * fix typo (#5611) * Fix fonts * Update .gitignore * more preload * meh * fixes * fix missing * increase width * words * twl * put real images * blog fixes * all imgs * read more button * add react text on large screens * misc polish, new icons, footer tweaks * change pitfall icon * fix * add gradient * fix * blog updates * scroll lock * fit * blog tweaks * display * smaller images * tweaks * separate component * fix some hanging words * tinier images * even tinier I guess * small a11y fixes * minor * add experimental_ * check in images * compress * lazy load community * fix * outline * svg conf bgs * crush images * reorder images for balance * bg in case images don't load * RN CTA target=_blank * refactor * rmfixed * eager lazyg * dimensions * add some content vis * lock * detect scroll without event * ts * check * Revert "check" This reverts commitc4048920b7. * remove feedback on mobile * just "Go truly native" * anim-fix * fix stretching * tsc * more scroll perf * mobile nav fixes * z-index fix * z * next/link for CTA for scroll restoration and client-side nav * logo symmetry * curly quotes * fix * fix wrapping on mobile on platform section * highlights * polish * tweaks * fix safari * adjust outline above SearchInput * symmetry * spacing * tweak * nbsp * orphans * fix * no match * oops * extract posts * fixnav * let them play a bit more * don't animate until hydration * fix boundaries calc * fix og images * 404 * twks * fix likes * less aggro lock * no initial fadein * gpu * fix sticky * more opt * clearer * twk * wip * wip * wip * wip * post * tweak shadows * nav animation * twk * fix * fix grid alignment * fix * animation tweak * wip * stuff * recommend to * drop spin * link * edits * edit * twk * clarify * twk * twk * twk * link * edits * dates * fix * edits * words * fixes * refactor * tweak * twk * custom setups * expo --------- Signed-off-by: Eng Zer Jun <engzerjun@gmail.com> Co-authored-by: Dan Abramov <dan.abramov@gmail.com> Co-authored-by: D <dan.lebo@me.com> Co-authored-by: Sophie Alpert <git@sophiebits.com> Co-authored-by: Nick Foden <nickfoden@gmail.com> Co-authored-by: Kiran Abburi <akiran@users.noreply.github.com> Co-authored-by: Minh Nguyen <2852660+NMinhNguyen@users.noreply.github.com> Co-authored-by: LamNVQ <97967630+DawnGate@users.noreply.github.com> Co-authored-by: Hyunseung Lee <hyunseunglee2008@gmail.com> Co-authored-by: BIKI DAS <bikid475@gmail.com> Co-authored-by: Mark Evola <76978800+MarkE16@users.noreply.github.com> Co-authored-by: Eng Zer Jun <engzerjun@gmail.com> Co-authored-by: Xavi Lee <awxiaoxian2020@163.com> Co-authored-by: 이동현 <ldh19971027@gmail.com> Co-authored-by: Dan Abramov <dan.abramov@me.com>
reactjs.org
This repo contains the source code and documentation powering reactjs.org.
Getting started
Prerequisites
- Git
- Node: any 12.x version starting with v12.0.0 or greater
- Yarn v1: See Yarn website for installation instructions
- A fork of the repo (for any contributions)
- A clone of the reactjs.org repo on your local machine
Installation
cd reactjs.orgto go into the project rootyarnto install the website's npm dependencies
Running locally
yarn devto start the hot-reloading development server (powered by Gatsby)open http://localhost:8000to open the site in your favorite browser
Contributing
Guidelines
The documentation is divided into several sections with a different tone and purpose. If you plan to write more than a few sentences, you might find it helpful to get familiar with the contributing guidelines for the appropriate sections.
Create a branch
git checkout mainfrom any folder in your localreactjs.orgrepositorygit pull origin mainto ensure you have the latest main codegit checkout -b the-name-of-my-branch(replacingthe-name-of-my-branchwith a suitable name) to create a branch
Make the change
- Follow the "Running locally" instructions
- Save the files and check in the browser
- Changes to React components in
srcwill hot-reload - Changes to markdown files in
contentwill hot-reload - If working with plugins, you may need to remove the
.cachedirectory and restart the server
Test the change
- If possible, test any visual changes in all latest versions of common browsers, on both desktop and mobile.
- Run
yarn check-allfrom the project root. (This will run Prettier, ESLint, and Flow.)
Push it
git add -A && git commit -m "My message"(replacingMy messagewith a commit message, such asFix header logo on Android) to stage and commit your changesgit push my-fork-name the-name-of-my-branch- Go to the reactjs.org repo and you should see recently pushed branches.
- Follow GitHub's instructions.
- If possible, include screenshots of visual changes. A preview build is triggered after your changes are pushed to GitHub.
Translation
If you are interested in translating reactjs.org, please see the current translation efforts at translations.reactjs.org.
If your language does not have a translation and you would like to create one, please follow the instructions at reactjs.org Translations.
Troubleshooting
yarn resetto clear the local cache
License
Content submitted to reactjs.org is CC-BY-4.0 licensed, as found in the LICENSE-DOCS.md file.
Description
Languages
TypeScript
59.1%
JavaScript
34.6%
CSS
6.1%
HTML
0.2%