Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React, { Component } from 'react';
- class UserOutput extends Component {
- render() {
- return (
- <div>
- <p onClick={this.props.click}>{this.props.username} says hi!</p>
- <p>{this.props.children}</p>
- </div>
- )
- }
- }
- export default UserOutput;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement