DEV Community

Husna Ramadan
Husna Ramadan

Posted on

Change Default Browser when Starting React Project

Starting project of React as soon as opening localhost:3000 on the default browser.

You may wonder "How to change default browser when start react project?"

Don't worry, .env on it.

Just create .env file on your react project. And add

BROWSER=chromium
Enter fullscreen mode Exit fullscreen mode

Choose freely of your browser for dev.

Top comments (4)

Collapse
 
mshajid profile image
mshajid

Thanks man, found the definition for short and sweet.

Collapse
 
husnaram profile image
Husna Ramadan

Glad to help.

Collapse
 
fadliselaz profile image
fadliselaz

Thank you..

Collapse
 
husnaram profile image
Husna Ramadan

You’re welcome