老师,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

 内部只能有一个标签

1
0

React零基础入门到实战,完成企业级项目简书网站开发

主流新技术 React-redux,React-router4,贯穿基础语法

5275 学习 · 2496 问题

查看课程