Commit Graph

40 Commits

Author SHA1 Message Date
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
Abrahym Sharf Eldden
55b4754073 Updated code-splitting.md (#4303)
Updated the imported `react-router-dom` Component `BrowserRouter` to read as `BrowserRouter as Router` since the code example has it as `Router` instead of `BrowserRouter`

Alternatively, can change the `<Router></Router>` component to be `<BrowserRouter>...</BrowserRouter>`
2022-02-06 12:56:58 +05:30
Jonatas de Oliveira Coêlho
e0aed3fbfb Update react-router examples to use v6 version (#4199)
* Update react-router examples to use v6 version

The exemple used to demonstrate Code-Splitting using react-router-dom is outdated. My suggestion is to use the new way of calling routes that was introduced in React Router v6

* remove index prop
2022-01-18 17:28:35 +00:00
Miltos Doulgeris
5a3576a9a1 Update outdated link to avoid redirect (#4218) 2022-01-18 16:56:11 +00:00
Bryn Dyment
420c397483 Update code-splitting.md (setup → set up) (#3643)
(`setup` is the noun form and `set up` is the verb form.)
2021-04-20 09:26:24 +02:00
Alexey Pyltsyn
371156e9c3 Remove line breaks to simplify syncs 2020-10-13 10:32:30 +03:00
Sam Robbins
ccc8e034e4 Update code-splitting.md (#3294) 2020-09-30 18:15:36 +03:00
Stephanie Coates
1f7a4b9574 update @babel/plugin-syntax-dynamic-import link (#3046)
Docs previously linked to https://classic.yarnpkg.com/en/package/babel-plugin-syntax-dynamic-import for Babel 6. Updated link to point to plugin compatible with Babel 7.
2020-09-29 10:26:34 +03:00
Chris Wilson
ec07e80be0 Remove prev/next links from the Advanced Guide (#3269) 2020-09-21 10:19:11 +02:00
Eduard Poracký
d16f1ee795 Add next and previous links to Advanced Guides (#540)
Co-authored-by: Eduard Poracký <eporacky@trionyx.sk>
Co-authored-by: Sebastian Silbermann <silbermann.sebastian@gmail.com>
2020-08-23 19:44:57 +02:00
Elia Maino
6b45b652d6 Update urls of tools examples (#3123)
* Update urls of tools examples

Some urls are outdated, they still redirect to the correct page but for example the info you can see on the bottom left of the page to know which page you're about to visit when hovering the link is wrong.

- https://github.com/facebookincubator/create-react-app -> https://github.com/facebook/create-react-app
- https://github.com/zeit/next.js/ -> https://github.com/vercel/next.js

* Provide urls to tools websites instead of GH repos
2020-07-20 17:04:59 +01:00
Nhan Doan
c2eb543b52 Update outdated URL in code-splitting.md (#2870)
* Update outdated URL

Next.js Dynamic Import.

* Update code-splitting.md

Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2020-03-30 16:47:52 +03:00
Carl A Lewis
6c108015ae Update code-splitting.md (#1972)
Added some clarity.
2020-03-09 14:54:30 +00:00
Greg Bergé
4ada2dee0e Update Loadable Components urls (#2602) 2019-12-10 01:19:48 +03:00
Josh Kramer
05206d70c9 Remove dynamic import proposal text (#2564)
Dynamic imports have reached stage 4 and are now part of ECMAScript.
2019-11-25 12:18:53 +03:00
Sophie Alpert
71050d527d Update code-splitting.md 2019-10-21 22:36:06 -07:00
Alexey Pyltsyn
87685fd27f Improve Code Splitting 2019-10-02 01:01:21 +03:00
Michael Hienle
4136300bff Mention Rollup (#2379) 2019-10-02 00:58:52 +03:00
Jacob Bandes-Storch
ec0cf5cf2c Update CodeSplitting to clarify that lazy() must be used with Suspense (#2306)
* Update CodeSplitting to clarify that lazy() must be used with Suspense

* Update code-splitting.md
2019-09-10 17:28:27 -07:00
Michael Hienle
40ae16ac09 Mention Rollup (#2187) 2019-08-12 10:03:11 +03:00
Matt Wood
6a6b9170f4 Fixed minor code-splitting.md typo (#1292)
* Fixed minor code-splitting.md typo

* Update code-splitting.md


Co-authored-by: Alexey Pyltsyn <lex61rus@gmail.com>
2019-06-30 10:33:05 +03:00
Peng Jie
a211417f66 fix(terms): treeshaking -> tree shaking (#1977) 2019-05-07 14:47:32 +03:00
Raed CHAMMAM
8803c6375b Fix CRA code splitting link (#1765) 2019-03-02 23:21:23 -08:00
Alexey Pyltsyn
1a625b7b69 Merge branch 'master' into httpsify 2019-02-22 00:12:48 +03:00
Michał Gołębiowski-Owczarek
7e4ac52af4 HTTPS-ify most insecure URLs in content/docs (& one in Acknowledgments)
This is a followup to #1157
2019-02-07 14:45:03 +01:00
Nat Alison
25df15b83e reapply, correctly generating links 2019-02-06 18:03:29 -08:00
Nat Alison
dc1e5366e3 revert id adding 2019-02-06 18:00:52 -08:00
Nat Alison
3e49e971d0 add everything else again 2019-02-06 17:22:04 -08:00
David Edmondson
5284091bdd Replace unmaintained react-loadable package with loadable-components. (#1407)
* Replace react-loadable with two active alternatives.

`react-loadable` no longer has an active maintainer. Only personal forks are available for Webpack 4 + Babel 7 support.

* Remove react-universal-component.

Change recommendation to only `loadable-components` and link directly to the SSR documentation.
2018-11-19 18:31:02 +00:00
Frederick Ros
ab79d82d95 Fix a typo (#1344)
Seems like the MyErrorBoundary import statement has a typo
2018-10-30 11:29:31 -07:00
Kurt Furbush
7258e584cb Update code-splitting.md (#1299)
Grammar fix
2018-10-26 09:12:44 -07:00
Sebastian Markbåge
b188555b06 Document React.lazy (#1284)
* Document React.lazy

Suspense is documented here since it's the only built-in way so far to
use it. In the future it'll likely be documented on its own more like
Error boundaries.

This hoists React.lazy as the primary way to do code splitting. However,
before getting into it we keep the recommendation to use react-loadable
for server-side rendered apps since Suspense is not yet ready for the
server.

* Tweaks

* Tweaks

* nits
2018-10-23 16:51:54 -07:00
pushpinder107
06f8553e90 Fixes typo (#902) 2018-05-23 12:48:45 +01:00
sventunus
18aee608ec Update code-splitting.md (#556)
Fixed a typo: "A good place **is** to start is with routes" => "A good place to start is with routes"
2018-01-29 01:10:04 +00:00
Joseph Race
794c0e0756 Update code-splitting.md (#546) 2018-01-23 09:36:15 -08:00
HeroProtagonist
8b9850820c div -> switch 2018-01-06 13:28:36 -05:00
HeroProtagonist
f601ba1dfc Properly nest components in router 2018-01-05 18:04:27 -05:00
Alex
bb4d0fc0c2 Revert wording 2018-01-04 20:29:24 -09:00
Joshua Comeau
4636461c79 Spelling nits for code-splitting.md
Really enjoyed the newest code-splitting docs!

I caught a minor spelling error: `interuptive` -> `interruptive`. I decided to indulge the writer in myself, and chose to rephrase some things that I thought could be clearer.

That said, I recognize that many of the changes I'm making are subjective. More than happy to simply fix the typo, but I thought I'd submit this to see if others agree with my phrasing changes.
2018-01-04 21:19:47 -05:00
James Kyle
615c660245 Init Code-Splitting docs (#348)
* Init Code-Splitting docs

* Fix <Route path="/"> to use exact

* Fix code splitting typos

* Fix note formatting on the website

* Minor tweaks

De-emphasize webpack, mention Next and Gatsby
2018-01-04 21:09:29 +00:00