编写index.js文件,这个文件就是一个基础文件,基本代码也都是一样的。 编写App.js文件,这个文件可以用Simple React Snippets快速生成。 先输入imrc,再输入ccc 代码如下: