There was an error while loading. Please reload this page.
1 parent d335e0b commit b22c4b3Copy full SHA for b22c4b3
packages/babel-plugin-optimize-react/README.md
@@ -14,15 +14,15 @@ var __ref__0 = useState(Math.random());
14
var value = __ref__0[0];
15
```
16
17
-## Named imports to hooks get transformed
+## Named imports for React get transformed
18
19
```js
20
// Original
21
-import React, {useState} from 'react';
+import React, {memo, useState} from 'react';
22
23
// With this plugin
24
import React from 'react';
25
-const {useState} = React;
+const {memo, useState} = React;
26
27
28
## Array destructuring transform for React's built-in hooks
0 commit comments