Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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
You can’t perform that action at this time.