Created
May 16, 2024 23:47
-
-
Save huozhi/8d45b18debe18f444a5cce2553688097 to your computer and use it in GitHub Desktop.
checkout-react-compiler-with-nextjs.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pnpm add next@canary react@beta react-dom@beta | |
pnpm add -D babel-plugin-react-compiler | |
echo "module.exports = { | |
experimental: { | |
reactCompiler: true | |
}, | |
}" > next.config.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment