background

Keep learning. This is the beginning of this article, and more will follow

Download the source code

Git address

Pull the source code

git clone https://github.com/facebook/react.git
Copy the code

Install dependencies

cd react
yarn 
Copy the code

Package React, React -dom, and Scheduler

yarn build react/index,react/jsx,react-dom/index,scheduler --type=NODE
Copy the code

The packed files will appear in the build/node_modules folder

Note: Packaging requires Java installation, otherwise an error will be reported. If java-related errors occur during the build process, try installing Java.