Reagent Hiccup allows you to easily embed subcomponents right in the markup of your components.
Parts of courses on specific topics
HTML tags can have multiple classes separated by spaces. We create a helper function to make it easier to generate them.
Hiccup gives us a nice shortcut for defining tags with ids and classes. I give my recommendations for how they should be used.
We explore how Reagent deals with lists of elements and how that interacts with React. We address some common warnings that come up when using lists and especially lazy lists.
We learn of a little-used shortcut for avoiding too much nesting in our HTML tree.
Normal HTML uses CSS strings in the style attribute. Hiccup breaks that up into a map so that the inline styles are easier to calculate.