What I'm getting blank page?

user8075707

I am new to react and when I say new I mean just started. I can't figure out why I'm not getting any header or paragraph to show.

This is what's in my script tag which has type text/babel

var myElements = React.createClass({
  render: function(){
    return  <h1>Hello</h1>
      <p>This is a paragraph </p>
  }
});

React.render(<myElements/>, document.body);

I also have babel cdn in my header

samnu pel

Your component should start with upper case. https://facebook.github.io/react/docs/jsx-in-depth.html

var MyElements = React.createClass({
render: function(){
return  <h1>Hello </h1>
  }
});

React.render(<MyElements/>, document.body);

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Why I'm getting a blank page from running a node server that point to the /dist folder of an Angular app?

Why am I getting a blank page when requiring a simple file?

why am i getting blank page on mapboxgl React?

I'm getting an error that Page is not working with HttpPost

How to fix this blank page drupal issue.I am getting blank content

My catalog app shows a blank page, what should I do?

Getting a blank page from reactJS

Getting blank page on submitting form

What is this address that I'm getting from recvfrom?

I'm getting empty array what is wrong?

What I'm doing wrong? "responsive page"

I'm getting errors that I don't understand installing NodeJS on a freshly installed Ubuntu that is otherwise blank

React Native Admob Google Mobile Ads not working. I am getting blank page when I click on the page

Why am I getting blank page when deploying Angular Spring war file to Apache Tomcat

Tomcat server is getting started but displaying only blank page when I open it

getting blank page when I tried to use slice function in react js

Why I'm not getting data from the job page on Scrapy?

Headless Chrome - getting blank page source

Getting blank page on using Route | React

Getting blank page using RequireJS and Grunt

sails.js - Getting blank page

Always getting blank page on all Laravel routes

Getting blank page when viewing the content of an arrary

Custom 500 error getting blank page sometimes

getting blank web page using component | ReactJS

What is this [__lldb_expr_19.Book] I'm getting in the console?

What's the reason for not getting the variable I'm expecting in the functional component?

What is exactly this error I'm getting here? (iOS, Xcode, Healthkit)

Blank page when calling Javascript in HTML- what am I doing wrong?