老师,CSS Transition 动画出现错误如下
来源:7-5 搜索框动画效果实现
慕无忌6582289
2018-12-27
React.Children.only expected to receive a single React element child.
▶ 26 stack frames were collapsed.
Module…/src/index.js
D:/muke/jianshu/src/index.js:7
4 |
5 |
6 |
7 | ReactDOM.render(, document.getElementById(‘root’));
8 |
9 |
View compiled
webpack_require
D:/muke/jianshu/webpack/bootstrap:782
779 | };
780 |
781 | // Execute the module function
782 | modules[moduleId].call(module.exports, module, module.exports, hotCreateRequire(moduleId));
| ^ 783 |
784 | // Flag the module as loaded
785 | module.l = true;
View compiled
写回答
1回答
-
Dell
2018-12-27
CSS Transition
内部只能有一个标签
10
相似问题