You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/blog/2018-03-27-update-on-async-rendering.md
+9
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,15 @@ These lifecycle methods have often been misunderstood and subtly misused; furthe
25
25
26
26
We maintain over 50,000 React components at Facebook, and we don't plan to rewrite them all immediately. We understand that migrations take time. We will take the gradual migration path along with everyone in the React community.
27
27
28
+
If you don't have the time to migrate or test these components, we recommend running a ["codemod"](https://medium.com/@cpojer/effective-javascript-codemods-5a6686bb46fb) script that renames them automatically:
29
+
30
+
```bash
31
+
cd your_project
32
+
npx react-codemod rename-unsafe-lifecycles
33
+
```
34
+
35
+
Learn more about this codemod on the [16.9.0 release post.](https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#renaming-unsafe-lifecycle-methods)
36
+
28
37
---
29
38
30
39
## Migrating from Legacy Lifecycles {#migrating-from-legacy-lifecycles}
Copy file name to clipboardExpand all lines: content/blog/2018-11-27-react-16-roadmap.md
+5
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,11 @@ author: [gaearon]
4
4
---
5
5
6
6
You might have heard about features like "Hooks", "Suspense", and "Concurrent Rendering" in the previous blog posts and talks. In this post, we'll look at how they fit together and the expected timeline for their availability in a stable release of React.
7
+
8
+
> An Update from August, 2019
9
+
>
10
+
> You can find an update to this roadmap in the [React 16.9 release blog post](/blog/2019/08/08/react-v16.9.0.html#an-update-to-the-roadmap).
Copy file name to clipboardExpand all lines: content/blog/2019-02-06-react-v16.8.0.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -50,7 +50,7 @@ Even while Hooks were in alpha, the React community created many interesting [ex
50
50
51
51
## Testing Hooks {#testing-hooks}
52
52
53
-
We have added a new API called `ReactTestUtils.act()` in this release. It ensures that the behavior in your tests matches what happens in the browser more closely. We recommend to wrap any code rendering and triggering updates to your components into `act()` calls. Testing libraries can also wrap their APIs with it (for example, [`react-testing-library`](https://github.com/kentcdodds/react-testing-library)'s `render` and `fireEvent` utilities do this).
53
+
We have added a new API called `ReactTestUtils.act()` in this release. It ensures that the behavior in your tests matches what happens in the browser more closely. We recommend to wrap any code rendering and triggering updates to your components into `act()` calls. Testing libraries can also wrap their APIs with it (for example, [`react-testing-library`](https://testing-library.com/react)'s `render` and `fireEvent` utilities do this).
54
54
55
55
For example, the counter example from [this page](/docs/hooks-effect.html) can be tested like this:
56
56
@@ -95,7 +95,7 @@ The calls to `act()` will also flush the effects inside of them.
95
95
96
96
If you need to test a custom Hook, you can do so by creating a component in your test, and using your Hook from it. Then you can test the component you wrote.
97
97
98
-
To reduce the boilerplate, we recommend using [`react-testing-library`](https://git.io/react-testing-library) which is designed to encourage writing tests that use your components as the end users do.
98
+
To reduce the boilerplate, we recommend using [`react-testing-library`](https://testing-library.com/react) which is designed to encourage writing tests that use your components as the end users do.
-[Timeline for Learning React](https://daveceddia.com/timeline-for-learning-react/) - Dave Ceddia's recommended timeline for learning React and the React ecosystem.
14
14
-[Simple React Development in 2017](https://hackernoon.com/simple-react-development-in-2017-113bd563691f) - Joshua Comeau's guide to showcase how easy it can be to start modern React development.
15
15
-[Visual Guide to State in React](https://daveceddia.com/visual-guide-to-state-in-react/) - Dave Ceddia's visual guide to React state.
16
+
-[The Hands-On Guide to Learning React Hooks](https://www.telerik.com/kendo-react-ui/react-hooks-guide/)
Copy file name to clipboardExpand all lines: content/community/videos.md
+1-2
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,7 @@ Facebook engineers Bill Fisher and Jing Chen talk about Flux and React at Forwar
53
53
### Going Big with React {#going-big-with-react}
54
54
55
55
Areeb Malik investigates how React performs in a high stress situation, and how it helped his team build safe code on a massive scale - (2014 - 0h31m).
56
-
[]
57
-
56
+
<iframetitle="Areeb Malik : Going big with React"width="650"height="366"src="https://www.youtube-nocookie.com/embed/9qcBlN6-qwY"frameborder="0"allowfullscreen></iframe>
58
57
59
58
### Rethinking Best Practices {#rethinking-best-practices}
0 commit comments