DEV Community

loading...

Change Default Browser when Starting React Project

Husna Ramadan
A person has drunk pure coffee
・1 min read

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.

Discussion (4)

Collapse
mshajid profile image
mshajid

Thanks man, found the definition for short and sweet.

Collapse
husnaramadan profile image
Husna Ramadan Author

Glad to help.

Collapse
fadliselaz profile image
fadliselaz

Thank you..

Collapse
husnaramadan profile image
Husna Ramadan Author

You’re welcome