Function: isTwitterEmbed()
isTwitterEmbed(
node):boolean
Defined in: packages/core/src/dom/index.ts:227
Checks if the node is an twitter embed
This function expects to be used with DOMNode objects from html-react-parser, which is
the underlying parser used by BlocksRenderer.
Usage
import { isTwitterEmbed } from '@headstartwp/core';
<BlocksRenderer html={html}>
<MyTwitterBlock
test={isTwitterEmbed}
/>
</BlocksRenderer>
Parameters
node
The node to test
Returns
boolean
true if the node is a twitter embed