Skip to content

How to substitute parsed HTML elements with React components (e.g. Material UI) #1424

Closed Answered by remarkablemark
sebpowell asked this question in Q&A
Discussion options

You must be logged in to vote

You'll need to use type assertion:

domToReact(domNode.children as DOMNode[])

See README.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@sebpowell
Comment options

@remarkablemark
Comment options

@sebpowell
Comment options

@remarkablemark
Comment options

Answer selected by sebpowell
@sebpowell
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants