
React
weixin_43478936
这个作者很懒,什么都没留下…
展开
-
解决 Uncaught SyntaxError: Unexpected token ‘<‘
react示例原创 2021-12-16 14:27:57 · 1526 阅读 · 0 评论 -
解惑React之this.setState({ [name]: value })
react之this.setState({ [name]: value })疑问学习React中文官方文档中的非空组件与受控组件中,遇到如下代码class Reservation extends React.Component { constructor(props) { super(props); this.state = { isGoing: true, numberOfGuests: 2 }; this.handleInputChan原创 2021-08-18 15:29:42 · 959 阅读 · 0 评论 -
Uncaught TypeError: Cannot read property ‘Component‘ of undefined
Cannot read property ‘Component’ of undefined1.问题描述2.解决方案问题描述上一篇文章中在本地搭建了第一个React项目后,跟着react中文文档学习,封装时钟的外观代码如下class Clock extends React.Component { constructor(props) { super(props); this.state = {date: new Date()}; } render() { ret原创 2021-08-17 16:35:46 · 1442 阅读 · 0 评论