Skip to content

Commit 8f79f4c

Browse files
committed
settup and init
0 parents  commit 8f79f4c

File tree

4 files changed

+2821
-0
lines changed

4 files changed

+2821
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
function App() {
2+
return <div>React's JSX compiles to a function call</div>
3+
}
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"presets": [
3+
[
4+
"@babel/preset-env",
5+
{
6+
"targets": {
7+
"edge": "17",
8+
"firefox": "60",
9+
"chrome": "67",
10+
"safari": "11.1"
11+
},
12+
"useBuiltIns": "usage",
13+
"corejs": "3.6.5"
14+
}
15+
],
16+
"@babel/preset-react"
17+
]
18+
// "plugins": [
19+
// [
20+
// "@babel/plugin-transform-react-jsx",
21+
// {
22+
// "throwIfNamespace": false, // defaults to true
23+
// "runtime": "automatic", // defaults to classic
24+
// "importSource": "custom-jsx-library" // defaults to react
25+
// }
26+
// ]
27+
// ]
28+
}

0 commit comments

Comments
 (0)