Ravenous: Part 1 - create-react-app did not produce a render function in App.js


I assume that there have been some updates to the create-react-app command where the default App.js files gives an output like:

function App() {
  return (
    <div className="App">
      <header className="App-header">
        <img src={logo} className="App-logo" alt="logo" />
          Edit <code>src/App.js</code> and save to reload.
          rel="noopener noreferrer"
          Learn React

The project requires us to edit the “render()” method with the app component (STEP 46). However this is no longer what the command produces. I assume the project will still work when I modify the return statement, but can someone explain why there is no an “App” component with a render function in this file? Is there a particular reason? Would this file function just fine if I replaced everything with the typical static components we have created so far?

1 Like

I just came across the same problem. Surprised no one has said anything in response to this in all this time. Perhaps somewhere else in the forums?

Same issue here. I’m getting the same code supertonic00 printed above. I’m wondering if there was an error in creating my app but my terminal switched to the “compiled successfully” screen so I can’t go back and check.