Comments (2)
I like the idea of having a format: false
option. Are you up for a pull request on that one?
I'm not sure when I will have time to address this request.
from jsx-to-string.
Thanks for the reply!
So, I wrote a PR, but then realized that I misconstrued slightly in that this issue is predicated on the output of the function being HTML. In my use case, I have JSX without Components, which I need to render to HTML cheaply (without bringing on renderToStaticMarkup
).
However, the output of this function is JSX, which means that the whitespace no longer matters in the same sense. So I'm inclined to close this, unless you disagree with my assessment above.
from jsx-to-string.
Related Issues (20)
- seen this similar package? HOT 1
- Can't handle null-value properties HOT 1
- key prop is ignored HOT 13
- Attaching or binding a function on the "onClick" event has an error. HOT 4
- JSX formatting HOT 1
- "item is not defined" with array of objects containing function HOT 1
- alternate boolean syntax HOT 3
- After updating to 1.2.0 not possible to stringify array
- Ignoring styled-jsx
- item is undefined, when parsing objects with a function. HOT 1
- getting error (0 , _immutable.isImmutable) is not a function HOT 2
- Nested elements not correctly parsed HOT 4
- Option to put props on single line
- Add support for fragments HOT 1
- Option to not render values HOT 1
- Still active? + Bug HOT 1
- Adding Array of items as prop, set default value to [...] similar to function HOT 5
- className outputs className, not class HOT 5
- Can't handle React components referenced within object properties. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jsx-to-string.