jsx-to-string icon indicating copy to clipboard operation
jsx-to-string copied to clipboard

Parse your React JSX component to string

Results 10 jsx-to-string issues
Sort by recently updated
recently updated
newest added

Is the repository still active? I see that the last commit was made almost four years ago, and although two of the three pull requests were approved they haven't been...

Awesome package! I found an edge case where components wrapped with `forwardRef` were not displaying correctly. I tested and the following change fixes this issue, at least for _named_ functions....

Potential solution for #40 Adds a boolean option `singleLineProps` to make props print on a single line. Defaults to false. Note that this solution is pretty naive. Something more robust...

Hi, cool library. It turned out to be exactly what I was looking for today. Anyway, I noticed that the JSX string adds line breaks between props when the component...

Hi, I noticed that string prop values are created with single quotes. I'd like to make them double quotes, so they're consistent with HTML tags and React documentation.

Hi, I'm working on our UI Library and I want to convect all the components to string so we can shown it as code ready to copy and paste. We...

Hi, I'm trying to convert a div with an array inside it but it removes the array completely from the output. With version 1.1.0 it worked fine but after the...

If you pass this JSX string: ``` fooorbaz ``` You get this output: ``` foo or baz ``` This will add whitespace between the `em`, "or" and `strong`, which is...

I just followed the example and somehow created my own based on the example. This is how the parsed look like [https://screencast.com/t/pCDuO0lb](https://screencast.com/t/pCDuO0lb) Basically, `onclick-"{function}..."` is not gonna work.

The code has some unneded external dependencies. We have to add whole react only for a oneliner: ``` /** * Verifies the object is a ReactElement. * See https://reactjs.org/docs/react-api.html#isvalidelement *...