Answer the question
In order to leave comments, you need to log in
Why doesn't it find pictures when Router is running?
Please tell me, I compile the react webpack files, the output is one index.js file.
I connect to html, and all the pictures on the site work fine
avatar:"../img/bmw.jpeg",
mark: "bmw",
model: "X1",
body: "sedan",
value: 3000,
description: "asdasdasdasdasdasdasdasdasdasdasdasdasd",
class location extends React.Component {
constructor(props){
super(props);
}
render() {
return (
<Router>
<div>
<Route path="/main" exect component={Main}></Route>
<Route path="/pagetwo/:id" component={PageTwo}></Route>
</div>
</Router>
)
}
}
export default location;
Answer the question
In order to leave comments, you need to log in
Try to run the node via express-static if the node exists of course
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question