omcljs / om

ClojureScript interface to Facebook's React
6.66k stars 364 forks source link

OM-799: Make a new public function, `dom/create-element` #811

Closed anmonteiro closed 7 years ago

anmonteiro commented 7 years ago

This is useful to create tags not present in React.DOM and therefore not supported as vars in the om.dom namespace. Akin to calling js/React.createElement, but more importantly to provide a way to create these elements when doing server-side rendering, instead of dropping to low-level functions like om.dom/element.