Skip to content

Instantly share code, notes, and snippets.

@matheusml
Created June 21, 2017 14:10
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 matheusml/3caa03e8db5cb9f57e58043cda500141 to your computer and use it in GitHub Desktop.
Save matheusml/3caa03e8db5cb9f57e58043cda500141 to your computer and use it in GitHub Desktop.
import React from 'react';
import PropTypes from 'prop-types';
export default function HelloWithProps(props) {
return (
<h1>Hello {props.name}</h1>
);
}
HelloWithProps.propTypes = {
name: PropTypes.string.isRequired,
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment