Skip to content

Instantly share code, notes, and snippets.

@phylliswong
Last active December 11, 2018 22:39
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 phylliswong/05bbd24cb80c9bbabeaa2e8f93f4eb42 to your computer and use it in GitHub Desktop.
Save phylliswong/05bbd24cb80c9bbabeaa2e8f93f4eb42 to your computer and use it in GitHub Desktop.
simple square component for tutorial example
import React from 'react';
const Square = () => {
const sqStyle = {
"border": "1px solid black",
"color": "#a9a9a9"
}
return (
<div className='sq-container' style={sqStyle}>
<h1 className="sq-title">This is a simple title</h1>
<p className="sq-content">Here is some awesome content</p>
</div>
)
}
export default Square;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment