Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from 'react';
- import ReactDOM from 'react-dom';
- class Greeting extends React.Component {
- render() {
- return <h1>Hi there,{this.props.firstName}!</h1>;
- }
- }
- ReactDOM.render(
- <Greeting firstName='Orange' />,
- document.getElementById('app')
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement