
react报错记录
浅端
用最少的文字,写最多的知识。
展开
-
git commit 提交的时候报错husky hook failed (add --no-verify to bypass)(解决办法)
这个问题是因为当你在终端输入git commit -m “XXX”,提交代码的时候会在Git键入提交信息前运行做代码风格检查。 解决办法我使用的是第三种。 转自:https://blog.youkuaiyun.com/yy_onway/article/details/98627663转载 2020-06-02 16:08:55 · 1050 阅读 · 0 评论 -
× Error: Objects are not valid as a React child (found: object with keys {color}). If you meant to r
Error: Objects are not valid as a React child (found: object with keys {color}). If you meant to render a collection of children, use an array instead. 这是我在学习React-hook的useContext时报的一个错 先看一下中文翻译: 大概意思就是:对象不能作为React组件。 报错原因: 代码太长我就不沾了,直接分析原因。 我在A组件里使用expo原创 2020-05-15 16:57:46 · 2223 阅读 · 2 评论