Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Choose any one syntax
- ```
- function Welcome(props) {
- return <h1>Hello, {props.name}</h1>;
- }
- ReactDOM.render(
- // Welcome({name: 'henlo'}),
- // <div>{Welcome({name: 'henlo'})}</div>,
- // < Welcome name="henlo"/>,
- document.getElementById('root')
- );
- ```
Add Comment
Please, Sign In to add comment