Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react官方文档学习笔记 | codecheese #8

Open
iplaycodex opened this issue Aug 21, 2019 · 0 comments
Open

react官方文档学习笔记 | codecheese #8

iplaycodex opened this issue Aug 21, 2019 · 0 comments

Comments

@iplaycodex
Copy link
Owner

https://codecheese.cn/2019/07/09/react%E5%AE%98%E6%96%B9%E6%96%87%E6%A1%A3%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/

函数组件和class组件在react中组件分为函数组件和class组件,他们是有区别的,并不是说任何时候都可以用class组件. 函数组件 1234// 定义一个函数组件function welcome(props){ return <div>{props.name}</div>} 该函数是一个有效的React组件,因为它

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant