Skip to content

Commit 3a31671

Browse files
authored
Merge pull request #398 from reactjs/sync-bd0c9d8c
2 parents da60971 + 00066fc commit 3a31671

5 files changed

+52
-8
lines changed

content/blog/2020-08-10-react-v17-rc.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ Most effects don't need to delay screen updates, so React runs them asynchronous
164164

165165
However, when a component is unmounting, effect *cleanup* functions used to run synchronously (similar to `componentWillUnmount` being synchronous in classes). We've found that this is not ideal for larger apps because it slows down large screen transitions (e.g. switching tabs).
166166

167-
**In React 17, the effect cleanup function will always runs asynchronously -- for example, if the component is unmounting, the cleanup will run _after_ the screen has been updated.**
167+
**In React 17, the effect cleanup function always runs asynchronously -- for example, if the component is unmounting, the cleanup runs _after_ the screen has been updated.**
168168

169169
This mirrors how the effects themselves run more closely. In the rare cases where you might want to rely on the synchronous execution, you can switch to `useLayoutEffect` instead.
170170

@@ -272,20 +272,20 @@ We encourage you to try React 17.0 Release Candidate soon and [raise any issues]
272272
To install React 17 RC with npm, run:
273273

274274
```bash
275-
275+
276276
```
277277

278278
To install React 17 RC with Yarn, run:
279279

280280
```bash
281-
281+
282282
```
283283

284284
We also provide UMD builds of React via a CDN:
285285

286286
```html
287-
<script crossorigin src="https://unpkg.com/[email protected].2/umd/react.production.min.js"></script>
288-
<script crossorigin src="https://unpkg.com/[email protected].2/umd/react-dom.production.min.js"></script>
287+
<script crossorigin src="https://unpkg.com/[email protected].3/umd/react.production.min.js"></script>
288+
<script crossorigin src="https://unpkg.com/[email protected].3/umd/react-dom.production.min.js"></script>
289289
```
290290

291291
Refer to the documentation for [detailed installation instructions](/docs/installation.html).
@@ -356,6 +356,7 @@ Refer to the documentation for [detailed installation instructions](/docs/instal
356356
* Remove `unstable_discreteUpdates` and `unstable_flushDiscreteUpdates`. ([@trueadm](https://github.com/trueadm) in [#18825](https://github.com/facebook/react/pull/18825))
357357
* Remove the `timeoutMs` argument. ([@acdlite](https://github.com/acdlite) in [#19703](https://github.com/facebook/react/pull/19703))
358358
* Disable `<div hidden />` prerendering in favor of a different future API. ([@acdlite](https://github.com/acdlite) in [#18917](https://github.com/facebook/react/pull/18917))
359+
* Add `unstable_expectedLoadTime` to Suspense for CPU-bound trees. ([@acdlite](https://github.com/acdlite) in [#19936](https://github.com/facebook/react/pull/19936))
359360
* Add an experimental `unstable_useOpaqueIdentifier` Hook. ([@lunaruan](https://github.com/lunaruan) in [#17322](https://github.com/facebook/react/pull/17322))
360361
* Add an experimental `unstable_startTransition` API. ([@rickhanlonii](https://github.com/rickhanlonii) in [#19696](https://github.com/facebook/react/pull/19696))
361362
* Using `act` in the test renderer no longer flushes Suspense fallbacks. ([@acdlite](https://github.com/acdlite) in [#18596](https://github.com/facebook/react/pull/18596))

content/blog/2020-09-22-introducing-the-new-jsx-transform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ function App() {
5454
5555
However, this is not perfect:
5656

57-
* Because JSX compiled into `React.createElement`, `React` needed to be in scope if you use JSX.
57+
* Because JSX was compiled into `React.createElement`, `React` needed to be in scope if you used JSX.
5858
* There are some [performance improvements and simplifications](https://github.com/reactjs/rfcs/blob/createlement-rfc/text/0000-create-element-changes.md#motivation) that `React.createElement` does not allow.
5959

6060
To solve these issues, React 17 introduces two new entry points to the React package that are intended to only be used by compilers like Babel and TypeScript. Instead of transforming JSX to `React.createElement`, **the new JSX transform** automatically imports special functions from those new entry points in the React package and calls them.

content/docs/design-principles.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Tenemos un chiste interno en el equipo de React acerca de que debería haberse l
9292

9393
Proveer una buena experiencia de desarrollador es importante para nosotros.
9494

95-
Por ejemplo, mantenemos las herramientas de desarrollo de React ([React DevTools](https://github.com/facebook/react-devtools)) las cuales te permiten inspeccionar el árbol de componentes de React en Chrome y Firefox. Hemos oído que proveen un gran incremento de productividad a los ingenieros de Facebook y a la comunidad.
95+
Por ejemplo, mantenemos las herramientas de desarrollo de React ([React DevTools](https://github.com/facebook/react/tree/master/packages/react-devtools)) las cuales te permiten inspeccionar el árbol de componentes de React en Chrome y Firefox. Hemos oído que proveen un gran incremento de productividad a los ingenieros de Facebook y a la comunidad.
9696

9797
También tratamos de dar un extra para proveer advertencias útiles a los desarrolladores. Por ejemplo, React te advierte en desarrollo si anidas etiquetas de una forma que el navegador no las entiende, o si cometes un error de transcripción en la API. Las advertencias a desarrolladores y los chequeos relacionados son la razón principal por la que la versión de desarrollo de React es más lenta que la versión de producción.
9898

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"url": "git+https://github.com/reactjs/es.reactjs.org.git"
7373
},
7474
"scripts": {
75-
"build": "gatsby build",
75+
"build": "gatsby clean && gatsby build",
7676
"check-all": "npm-run-all prettier generate-ids --parallel lint flow",
7777
"ci-check": "npm-run-all prettier:diff --parallel lint flow",
7878
"dev": "gatsby develop -H 0.0.0.0",

vercel.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"github": { "silent": true },
3+
"trailingSlash": false,
4+
"redirects": [
5+
{ "source": "/tips/controlled-input-null-value.html", "destination": "/docs/forms.html#controlled-input-null-value", "permanent": false },
6+
{ "source": "/concurrent", "destination": "/docs/concurrent-mode-intro.html", "permanent": false },
7+
{ "source": "/hooks", "destination": "/docs/hooks-intro.html", "permanent": false },
8+
{ "source": "/tutorial", "destination": "/tutorial/tutorial.html", "permanent": false },
9+
{ "source": "/your-story", "destination": "https://www.surveymonkey.co.uk/r/MVQV2R9", "permanent": false },
10+
{ "source": "/stories", "destination": "https://medium.com/react-community-stories", "permanent": false },
11+
{ "source": "/html-jsx.html", "destination": "https://magic.reactjs.net/htmltojsx.htm", "destination": "", "permanent": false },
12+
{ "source": "/link/attribute-behavior", "destination": "/blog/2017/09/08/dom-attributes-in-react-16.html#changes-in-detail", "permanent": false },
13+
{ "source": "/link/controlled-components", "destination": "/docs/forms.html#controlled-components", "permanent": false },
14+
{ "source": "/link/crossorigin-error", "destination": "/docs/cross-origin-errors.html", "permanent": false },
15+
{ "source": "/link/dangerously-set-inner-html", "destination": "/docs/dom-elements.html#dangerouslysetinnerhtml", "permanent": false },
16+
{ "source": "/link/derived-state", "destination": "/blog/2018/06/07/you-probably-dont-need-derived-state.html", "permanent": false },
17+
{ "source": "/link/error-boundaries", "destination": "/docs/error-boundaries.html", "permanent": false },
18+
{ "source": "/link/event-pooling", "destination": "/docs/events.html#event-pooling", "permanent": false },
19+
{ "source": "/link/hooks-data-fetching", "destination": "/docs/hooks-faq.html#how-can-i-do-data-fetching-with-hooks", "permanent": false },
20+
{ "source": "/link/invalid-aria-props", "destination": "/warnings/invalid-aria-prop.html", "permanent": false },
21+
{ "source": "/link/invalid-hook-call", "destination": "/warnings/invalid-hook-call-warning.html", "permanent": false },
22+
{ "source": "/link/legacy-context", "destination": "/docs/legacy-context.html", "permanent": false },
23+
{ "source": "/link/legacy-factories", "destination": "/warnings/legacy-factories.html", "permanent": false },
24+
{ "source": "/link/mock-scheduler", "destination": "/docs/testing-environments.html#mocking-a-rendering-surface", "destination": "", "permanent": false },
25+
{ "source": "/link/perf-use-production-build", "destination": "/docs/optimizing-performance.html#use-the-production-build", "permanent": false },
26+
{ "source": "/link/react-devtools", "destination": "/blog/2015/09/02/new-react-developer-tools.html#installation", "permanent": false },
27+
{ "source": "/link/react-polyfills", "destination": "/docs/javascript-environment-requirements.html", "permanent": false },
28+
{ "source": "/link/refs-must-have-owner", "destination": "/warnings/refs-must-have-owner.html", "permanent": false },
29+
{ "source": "/link/rules-of-hooks", "destination": "/docs/hooks-rules.html", "permanent": false },
30+
{ "source": "/link/special-props", "destination": "/warnings/special-props.html", "permanent": false },
31+
{ "source": "/link/strict-mode-find-node", "destination": "/docs/strict-mode.html#warning-about-deprecated-finddomnode-usage", "permanent": false },
32+
{ "source": "/link/strict-mode-string-ref", "destination": "/docs/refs-and-the-dom.html#legacy-api-string-refs", "permanent": false },
33+
{ "source": "/link/unsafe-component-lifecycles", "destination": "/blog/2018/03/27/update-on-async-rendering.html", "permanent": false },
34+
{ "source": "/link/warning-keys", "destination": "/docs/lists-and-keys.html#keys", "permanent": false },
35+
{ "source": "/link/wrap-tests-with-act", "destination": "/docs/test-utils.html#act", "permanent": false },
36+
{ "source": "/link/interaction-tracing", "destination": "https://gist.github.com/bvaughn/8de925562903afd2e7a12554adcdda16", "permanent": false },
37+
{ "source": "/link/profiling", "destination": "https://gist.github.com/bvaughn/25e6233aeb1b4f0cdb8d8366e54a3977", "permanent": false },
38+
{ "source": "/link/test-utils-mock-component", "destination": "https://gist.github.com/bvaughn/fbf41b3f895bf2d297935faa5525eee9", "permanent": false },
39+
{ "source": "/link/uselayouteffect-ssr", "destination": "https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85", "permanent": false },
40+
{ "source": "/link/react-devtools-faq", "destination": "https://github.com/facebook/react/tree/master/packages/react-devtools#faq", "permanent": false },
41+
{ "source": "/link/setstate-in-render", "destination": "https://github.com/facebook/react/issues/18178#issuecomment-595846312", "permanent": false }
42+
]
43+
}

0 commit comments

Comments
 (0)