Skip to content

Instantly share code, notes, and snippets.

@roeib
Last active October 1, 2019 10:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roeib/b4822727e2f22b81bd3ec21af6c74adb to your computer and use it in GitHub Desktop.
Save roeib/b4822727e2f22b81bd3ec21af6c74adb to your computer and use it in GitHub Desktop.
import React from 'react';
import { PropTypes } from 'prop-types';
const User = ({ name,age })=> {
return (
<div>
<p>User Name: {name}</p>
<p>Age: {age}</p>
</div>
);
}
User.propTypes = {
name: PropTypes.string,
age: PropTypes.number
};
export default User;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment