Last active
October 14, 2016 07:24
-
-
Save ArcanisCz/9ca73d14a49f9645c1822c776f7afe4a to your computer and use it in GitHub Desktop.
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
(defn simple-component [] | |
[:div | |
[:p "I am a component!"] | |
[:p.someclass | |
"I have " [:strong "bold"] | |
[:span {:style {:color "red"}} " and red "] "text."]]) | |
const SimpleComponent = () => ( | |
<div> | |
<p>I am a component!</p> | |
<p className="someclass"> | |
I have <strong>bold</strong> | |
<span style={{color:"red"}}> and red </span> text | |
</p> | |
</div> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment