MCPcopy Create free account
hub / github.com/shoutem/ui / customizeRenderElement

Function customizeRenderElement

html/Html.js:264–273  ·  view source on GitHub ↗
(customizer, renderElement)

Source from the content-addressed store, hash-verified

262 * @returns {Component}
263 */
264export const customizeRenderElement = function(customizer, renderElement) {
265 return function(element) {
266 const renderedElement = customizer(element);
267 if (renderedElement) {
268 return renderedElement;
269 }
270
271 return renderElement(element);
272 };
273};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected