FormidableLabs / FormidableLabs/react-live
bad syntax React.useEffect crashs the site
未关闭
bug
- 主要语言
- TypeScript
- 星标
- 4.6k
- 派生
- 260
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Code of Conduct
- [x] I agree to follow this project's Code of Conduct
### Code Sandbox link
https://nearform.com/open-source/react-live
### Bug report
```markdown
In react-live website, try pasting this code. Then **n is not a function** error will occur and breaks the page.
() => {
React.useEffect(()=>[])
}
```
贡献指南
调研方向
先在链接的 sandbox 中的 react-live 网站复现粘贴的代码片段,然后追踪在发生“n is not a function”崩溃之前,格式错误的 React.useEffect 语法是如何被处理的。该 issue 没有指定源文件或测试;完成标准是此输入不再导致页面崩溃,并通过回归检查验证该行为。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- react, typescript
- 领域
- frontend
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 52/100