Skip to content

Instantly share code, notes, and snippets.

View lizhongyue248's full-sized avatar
🎯
Focusing

中月不吃辣 lizhongyue248

🎯
Focusing
View GitHub Profile
@lizhongyue248
lizhongyue248 / gatsby-node.js
Created February 3, 2021 02:27
Gatsby React 17: React is not defined Resovle
exports.onCreateBabelConfig = ({ actions }) => {
actions.setBabelPlugin({
name: '@babel/plugin-transform-react-jsx',
options: {
runtime: 'automatic',
},
});
};