Skip to content

Instantly share code, notes, and snippets.

@ArcanisCz
Last active October 14, 2016 07:24
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 ArcanisCz/9ca73d14a49f9645c1822c776f7afe4a to your computer and use it in GitHub Desktop.
Save ArcanisCz/9ca73d14a49f9645c1822c776f7afe4a to your computer and use it in GitHub Desktop.
(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