Closed sheepsteak closed 9 years ago
Using dangerouslySetInnerHTML currently throws an error as dom passes [] even if no children were specified:
dangerouslySetInnerHTML
dom
[]
Unhandled rejection Error: Invariant Violation: Can only set one of `children` or `props.dangerouslySetInnerHTML`.
I've added a check in the component function in dom to set props.children to void if no children were specified.
component
props.children
void
Using
dangerouslySetInnerHTML
currently throws an error asdom
passes[]
even if no children were specified:I've added a check in the
component
function indom
to setprops.children
tovoid
if no children were specified.