Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can this render a custom React component found within the HTML? #1495

Open
kaijuh opened this issue Aug 23, 2024 · 1 comment
Open

Can this render a custom React component found within the HTML? #1495

kaijuh opened this issue Aug 23, 2024 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@kaijuh
Copy link

kaijuh commented Aug 23, 2024

Question

Can this package render a custom React component. If so, could you provide an example of how to implement that?

I was using a similar package as this and I am able to render my custom React component but the issue I am running into is that none of the HTML found after the custom react component is being rendered.

Thanks

Keywords

custom react component

@kaijuh kaijuh added the question Further information is requested label Aug 23, 2024
@remarkablemark
Copy link
Owner

@kaijuh This package only converts an HTML string to React elements. To convert a JSX string to React elements, you can use something like react-jsx-parser.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants