Created
October 23, 2017 08:34
-
-
Save JohnKim/6ab22d7a8fe3b08a8a835e5c5152c0aa to your computer and use it in GitHub Desktop.
[React-sketchapp 강의] 가장 기본적인 코드
This file contains 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 { render, Text, Artboard } from 'react-sketchapp'; | |
const App = props => ( | |
<Artboard> | |
<Text style={{ fontFamily: 'Comic Sans MS', color: 'hotPink' }}> | |
{ props.message } | |
</Text> | |
</Artboard> | |
); | |
export default (context) => { | |
render(<App message="OKKY Conference 2017" />, context); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment