1、
import React, { Component } from ‘react‘;
{ Component }是ES6里的解构赋值
相当于
import React from ‘react‘; const Component = React.Component
2、serviceWorker
PWA有关
3、Fragments 如果子节点多,可以包含在Fragments 里,而且审查元素的时候,不会显示
https://zh-hans.reactjs.org/docs/fragments.html#___gatsby
原文:https://www.cnblogs.com/zhaobao1830/p/11185817.html