PDA

View Full Version : Issue on set parameter using react router



happyboyhk
2 May 2018, 6:38 PM
hi all,

I would like to pass the parameter using router like below:


<Router>
<div>
<Route path="/home/:userId" component ={Home}/>
<Route path="/registration" component={Registration}/>
</div>
</Router>

but the following message show:
Refused to apply style from 'http://localhost:8080/home/ext-react/ext.css?50eb7696f5a4c830b84f' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.



May I have any advise??

Thanks