Skip to content

xupea/debug-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Debug React

debug the source code of react in vscode

Environment Setup

React 18.2.0 now only support bellow node version for development: "^12.17.0 || 13.x || 14.x || 15.x || 16.x || 17.x".

17.x is recommanded.

Build React

cd react-18.2.0 && yarn && yarn build

Link Modules

cd build/node_modules/react && npm link

and

cd .. && cd react-dom && npm link

Cra or Cra eject or Vite demo

npm link react react-dom

Issues

For vite

Try to delete .vite folder under node_modules and npm run dev, then start debugging.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published