-
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
# Examples
## HTML + TypeScript
This example shows the most basic usage of the library.
The code handles only a limited set of node type for demonstration purpose.
<iframe src="https://codesandbox.io/embed/gracious-rgb-kmqbu?fontsize=14&module=%2Fsrc%2Findex.ts&view=editor" loading="lazy" title="Plain HTML with TypeScript example" allow="" sandbox="allow-popups allow-scripts allow-same-origin"></iframe>
## React + TypeScript
This example shows how to construct React node without using `dangerouslySetInnerHTML`.
The code handles only a limited set of node type for demonstration purpose.
<iframe src="https://codesandbox.io/embed/condescending-heyrovsky-y5jw3?fontsize=14&module=%2Fsrc%2FSlackMessage.tsx" loading="lazy" title="React with TypeScript example" allow="" sandbox="allow-popups allow-scripts allow-same-origin"></iframe>