When using the element in an multi-step AJAX form, I encountered a situation when the field was not present in the form anymore, but the JS was still executing and throwing a TypeError because the ReactDOM.render function was not supplied a DOM element (see attachmed screenshot).
Skip rendering when the element is not found in the DOM.
Active
1.0
Code