daily pastebin goal
27%
SHARE
TWEET

Untitled

a guest May 16th, 2018 105 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import React, {Component} from 'react';
  2. import './App.css';
  3.  
  4. const message = props => <div>{props.msg}</div>;
  5.  
  6. class App extends Component {
  7.   render() {
  8.     return (
  9.       <div>
  10.         {React.createElement(message, {msg: 'A Generic Hello World Text'})}
  11.         {React.createElement(message, {
  12.           msg: 'Creating Reusable React Components',
  13.         })}
  14.       </div>
  15.     );
  16.   }
  17. }
  18.  
  19. export default App;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top