DEV Community

Himanshu Gupta
Himanshu Gupta

Posted on

1

Reactjs Admin run on Server basename properties

The basename prop is used to provide a base URL path for all the locations in the application. For example, if you want to render your application at the /admin path instead of rendering at the root path /, then specify the basename prop in :


The basename prop now adds the base URL path /admin to the application. When you navigate using and , the basename path is added to the URL. For example, consider the following code with two components:







Home

Dashboard




Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more