目录 背景操作 背景 react做简书项目中遇到这个问题 操作 把injectGlobal 改为createGlobalStyle 在v4中,injectGlobal API被移除,并被createGlobalStyle取代。