isn't much that can go wrong here, but in case something does, // let's log the error and show a message to the user in place of the component. // Error boundary is like a "try-catch" for components. ReactDOM.render( <ErrorBoundary placeholder={<p>{I18n.t("js.error_placeholder")}</p>}> <CustomFields customFields={customFields} onStateChange={(newState, isInitial) => { this.attr.customFieldsState = newState; if (!isInitial) { this.updateCustomFieldsInputs(); } this.trigger("uiUpdateCurrentProductPageTabHeight"); }} /> </ErrorBoundary>, customFieldsRoot ); };