How to use the isValidElement function from preact
Find comprehensive JavaScript preact.isValidElement code examples handpicked from public code repositorys.
5100 5101 5102 5103 5104 5105 5106 5107 5108 5109
else { const customContent = typeof generator === 'function' ? generator(renderProps, preact.createElement) : generator; if (typeof customContent === 'string' || preact.isValidElement(customContent) || Array.isArray(customContent)) { innerContent = customContent; } else if (typeof customContent === 'object') {
0
0
0
preact.options is the most popular function in preact (790 examples)