In order to remove an element, I need to be able to do render(null, parentEl, elToRemove). In the typings file, render鈥檚 first argument is typed Element, which is non-nullable, precluding passing in null. This is preventing me from removing elements from a TypeScript project. The source suggests that this argument can be null, undefined, a boolean (?), a string or a number.
(I haven't gotten this far yet, but I assume that if (Sounds like no problem on the return type.)render returns the rendered element, and I'm removing things, it an also return null, which means the function鈥檚 return type also needs to be nullable.)
Rendering null will return an empty text node.
Cool, probably no problem on the return type side then. I updated the issue to reflect.
@dcporter Want to PR the nullable arg bit?
@developit Done :)