I have a domain name which i want to link to my react project. The project has no node.js and express dependency.It is purely react project.I have deployed it in the node.js server.
How to map the domain name to pure react project??
I have a domain name which i want to link to my react project. The project has no node.js and express dependency.It is purely react project.I have deployed it in the node.js server.
How to map the domain name to pure react project??
A React app is just a compiled JS and a base HTML file.
You have to deploy on your server all your compiled files (bundle.js
) and the corresponding index.html
.
Generally on servers
/www/index.html
/www/bundle.js
You can map or configure domain name in your deployed host. In every Host Provider there are options given to map or configure the domain name.
As a side note react
is just a javascript
like html
which just renders in your browser page, has nothing to do with domain name mapping or on server side.