摘要:
# Npm npm install dotenv --save # Yarn yarn add dotenv index.js: const dotenv = require("dotenv") dotenv.config() 在程序中尽早添加 dotenv.config() 这一行,以确保所有代码 阅读全文
摘要:
.env shopify 商店应用配置,决定本项目属于哪个商店的哪个应用 SHOPIFY_API_KEY=20e29ab6a9ea6f3f1979c459eadeee11 SHOPIFY_API_SECRET=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 SHOP=k 阅读全文
摘要:
import React, { Component } from "react"; import Child from "./Child"; // 错误边界 export default class Parent extends Component { state = { hasError: '', 阅读全文
摘要:
yarn add babel-plugin-import 或者 npm install babel-plugin-import //在craco.config,.js里加上 babel:{ plugins: [ ["@babel/plugin-proposal-decorators", { lega 阅读全文
摘要:
pubsubjs : 消息订阅 prop-types: prop类型检测 material-ui:国外常用的ui框架 antd: 国内常用的UI框架 redux-devtools: 谷歌浏览器插件,监听redux数据, 需要在项目中配合包: redux-devtools-extension,再在st 阅读全文