Guest User

Untitled

a guest
May 16th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  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;
Add Comment
Please, Sign In to add comment