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>
3 years ago
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>`
3 years ago
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
3 years ago
Miltos Doulgeris
5a3576a9a1
Update outdated link to avoid redirect ( #4218 )
3 years ago
Bryn Dyment
420c397483
Update code-splitting.md (setup → set up) ( #3643 )
(`setup` is the noun form and `set up` is the verb form.)
4 years ago
Alexey Pyltsyn
371156e9c3
Remove line breaks to simplify syncs
4 years ago
Sam Robbins
ccc8e034e4
Update code-splitting.md ( #3294 )
4 years ago
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.
4 years ago
Chris Wilson
ec07e80be0
Remove prev/next links from the Advanced Guide ( #3269 )
4 years ago
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>
4 years ago
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
5 years ago
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>
5 years ago
Carl A Lewis
6c108015ae
Update code-splitting.md ( #1972 )
Added some clarity.
5 years ago
Greg Bergé
4ada2dee0e
Update Loadable Components urls ( #2602 )
5 years ago
Josh Kramer
05206d70c9
Remove dynamic import proposal text ( #2564 )
Dynamic imports have reached stage 4 and are now part of ECMAScript.
5 years ago
Sophie Alpert
71050d527d
Update code-splitting.md
5 years ago
Alexey Pyltsyn
87685fd27f
Improve Code Splitting
5 years ago
Michael Hienle
4136300bff
Mention Rollup ( #2379 )
5 years ago
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
5 years ago
Michael Hienle
40ae16ac09
Mention Rollup ( #2187 )
5 years ago
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>
6 years ago
Peng Jie
a211417f66
fix(terms): treeshaking -> tree shaking ( #1977 )
6 years ago
Raed CHAMMAM
8803c6375b
Fix CRA code splitting link ( #1765 )
6 years ago
Michał Gołębiowski-Owczarek
7e4ac52af4
HTTPS-ify most insecure URLs in content/docs (& one in Acknowledgments)
This is a followup to #1157
6 years ago
Nat Alison
25df15b83e
reapply, correctly generating links
6 years ago
Nat Alison
dc1e5366e3
revert id adding
6 years ago
Nat Alison
3e49e971d0
add everything else again
6 years ago
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.
6 years ago
Frederick Ros
ab79d82d95
Fix a typo ( #1344 )
Seems like the MyErrorBoundary import statement has a typo
6 years ago
Kurt Furbush
7258e584cb
Update code-splitting.md ( #1299 )
Grammar fix
6 years ago
Leigh Halliday
a8e5cc424f
Fixing a small grammer mistake on the code-splitting page
6 years ago
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
6 years ago
pushpinder107
06f8553e90
Fixes typo ( #902 )
7 years ago
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"
7 years ago
Joseph Race
794c0e0756
Update code-splitting.md ( #546 )
7 years ago
HeroProtagonist
8b9850820c
div -> switch
7 years ago
HeroProtagonist
f601ba1dfc
Properly nest components in router
7 years ago
Alex
bb4d0fc0c2
Revert wording
7 years ago
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.
7 years ago
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
7 years ago