run and debug react in vs code code example
Example 1: how to create react app in vs code
npx create-react-app my-app
Example 2: Configure the Chrome debugger react
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"
}
]
}