- Props map now optional, eg:
[:div [:div "Hello world"]]
is now considered valid
- Better support for children within rehook components
- Add
rehook.util/child-seq
which returns a JS array of children
- Add
rehook.dom/as-element
which turns a vector of Hiccup syntax into a React element.
- Alias
:<>
asreact/Fragment
- Bugfix: compile-hiccup supports seq as child
- Support both
div.class.name
shorthand and{:className ...}
at once (eg, by merging the two) - Fix more edge cases in complex, nested hiccup compilation
- Add
rehook.util/children
fn to access child elements of rehook component - react-dom/react-native: rehook components expose a human readable
displayName
for better debugging - Support fragments via
:>
shorthand - Support shorthand class/id notation, eg
:div.foo#bar
- Third argument to component can also be a seq (eg,
[:div {} (for [x y] ...)]
) - Fix more edge cases in complex, nested hiccup compilation
- Fix more edge cases in complex, nested hiccup compilation
- Fix hiccup compilation bug when compiling symbols
- Add
rehook.util/react-props
helper fn
- Pass React props as metadata with key
:react/props
into Rehook components.
- Breaking: leave props untouched when passed into other Rehook components.