Skip to content

Commit 8678c56

Browse files
tonyjmartinezsapegin
authored andcommitted
Docs: Fix "React.useState is not a function" error in the basic example (#1418)
Fixes #1410.
1 parent 6d70a2a commit 8678c56

File tree

3 files changed

+1684
-4448
lines changed

3 files changed

+1684
-4448
lines changed

examples/basic/babel.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module.exports = {
55
{
66
modules: false,
77
useBuiltIns: 'usage',
8+
corejs: 3,
89
},
910
],
1011
'@babel/react',

0 commit comments

Comments
 (0)