Answer the question
In order to leave comments, you need to log in
Why an error when changing any file in a react project?
in the app.js file I had some specific code:
import React, {Component} from "react";
function App() {
return (
<div className="App">
test
</div>
);
}
export default App;
import React, {Component} from "react";
import Homepage from "./components/pages/homePage";
class App extends Component {
render() {
return (
<div className="App">
<Homepage />
</div>
);
}
}
export default App;
<div className="App">
какой-то текст
</div>
<div className="App">
<div className="App">
<h1> </h1>
</div>
Answer the question
In order to leave comments, you need to log in
You have return
such a bracket after it in your HomePage {
, but it should be like this (
Well, the corresponding bracket should close
Parentheses are not needed for the class
....
class App extends Component {
....
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question