Skip to content

Commit

Permalink
chore: change url domain
Browse files Browse the repository at this point in the history
  • Loading branch information
lv-z-l committed Sep 17, 2024
1 parent 0bca783 commit 2aef74e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion articles/react/react/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ React.createElement = (tag, attrs, ...children) => {
}
```
那是什么把jsx 转换成 React.createElement 的呢?一想到转换,那跟 Babel 就扯上关系了(@babel/preset-react)。
<img width="50%" src="https://mp-780ec593-98c3-47c6-9328-1690ac79007b.cdn.bspapp.com/images//iScreen Shoter - Google Chrome - 231217220102.jpg">
<img width="50%" src="https://mp-780ec593-98c3-47c6-9328-1690ac79007b.cdn.bspapp.com/images/babel-preset-reacct.png">
React 函数组件的基本格式如下:
Expand Down

0 comments on commit 2aef74e

Please sign in to comment.