I am trying to setup for react but my localhost:3000 is giving connection error after npm-start. Can anyone please help me how I can fix the error? Please have a look at this screenshot to see the error

I am trying to setup for react but my localhost:3000 is giving connection error after npm-start. Can anyone please help me how I can fix the error? Please have a look at this screenshot to see the error

 
    
     
    
    As a workaround solution, you can fix this by using the legacy provider for OpenSSL. So, you need to edit the package.json and change the configuration of start and build in this way:
{
   ...
   "scripts": {
        "start": "react-scripts --openssl-legacy-provider start",
        "build": "react-scripts --openssl-legacy-provider build",
        ...
   },
   ...
}
Save the package.json file and execute the command npm start again and your application should start and open the browser with URL http://localhost:3000.
 
    
    