Last active
December 11, 2018 22:39
-
-
Save phylliswong/05bbd24cb80c9bbabeaa2e8f93f4eb42 to your computer and use it in GitHub Desktop.
simple square component for tutorial example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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