src/Test.js
import React from 'react'; function Test() { return ( <div> test </div> ); } export default Test;
src/index.js中引入组件Test
src/Test.js
import React from 'react'; function Test() { return ( <div> test </div> ); } export default Test;
src/index.js中引入组件Test