Add optimization to ReactDOMComponent

@sebmarkbage looks like we missed this one