Nate Yeum
Nate Yeum

Reputation: 291

How can i solve blank page? ( React beginner )

After i changed App.js code.. The page show blank page with 3 error code continusly

enter image description here

I tried to fix it for 4 hours..

Now I can't hold on anymore..

Can you help me..?

import React, { Component } from 'react';
import './App.css';

class App extends Component {
  render(){
    return (
      <div className="App">
        Hello, React!!
      </div>
    );
  }
} 
export default App;

Upvotes: 1

Views: 859

Answers (1)

Varun Sharma
Varun Sharma

Reputation: 206

I think you are running the app with live server of visual studio code. To run react app you need to run following command in the root of react app.

If you are using npm then run this command :-

npm start 

If you are using yarn then run this command :-

yarn start

Upvotes: 1

Related Questions