react-jsx-parser
react-jsx-parser copied to clipboard
A React component which can parse JSX and output rendered React Components.
I'm fetching an article from cms. Inside it, there's a line: ``` css { color: red } ``` that breaks the rendering and throws this error `SyntaxError: Unexpected token (19:44)`...
Bumps [terser](https://github.com/terser/terser) from 5.5.1 to 5.14.2. Changelog Sourced from terser's changelog. v5.14.2 Security fix for RegExps that should not be evaluated (regexp DDOS) Source maps improvements (#1211) Performance improvements in...
Hi, I was trying to bind the onClick function using eventhandler but nothing seems to work. Here is my code. ` { console.log('evet'); }, }} components={{ InjectableComponent }} jsx={ Header...
Bumps [jsdom](https://github.com/jsdom/jsdom) from 16.4.0 to 16.7.0. Release notes Sourced from jsdom's releases. Version 16.7.0 Added AbortSignal.abort(). (ninevra) Added dummy x and y properties to the return value of getBoundingClientRect(). (eiko)...
Hi there, I noticed that list operations like `Array.filter` aren't working as expected. Here's a [Codesandbox example](https://codesandbox.io/s/react-jsx-parser-array-operations-issue-21qkfs). The issue is that `list.filter(item => item % 2 === 0)` is returning...
Hi @TroyAlford, thanks for this library. I have a use case where I'd like to spread data objects in the jsx, e.g.: ```
Bumps [eventsource](https://github.com/EventSource/eventsource) from 1.0.7 to 1.1.1. Changelog Sourced from eventsource's changelog. 1.1.1 Do not include authorization and cookie headers on redirect to different origin (#273 Espen Hovlandsdal) 1.1.0 Improve performance...
Hi, When I updated latest react 18.0.0. I have a warning highlight in typescript **'JsxParser' cannot be used as a JSX component.** Any ideas? Thanks you for the library.
Hey, First off, thanks for `react-jsx-parser`! I've found a (possible) bug with boolean expressions. In a JSX string, this expression is not evaluated to the expected value: ``` ... {boundFunction(!boundValue)}...