DOMParser() usage in react-scan source code.
I found DOMParser in react-scan source code as shown below.
const iconSprite = new DOMParser().parseFromString(
ICONS,
'image/svg+xml',
).documentElement;
This picked from line 54 in packages/scan/src/core/index.ts. In this article, we und...
thinkthroo.com2 min read