You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having an array of 4 is very bad in my opinion I think it should always have 3 and then I can iterate through the children. Maybe I understood jsx wrongly but this is my opinion do you agree?
The text was updated successfully, but these errors were encountered:
The library preserves whitespace and control characters. So a JSX string parsed through jsxToJson and then afterward recreated via a jsonToJsx function (still missing #1) would be the same.
Thank you for the quick response. For me this still feels like a thing that should "just work" by default. I stumbled upon this because my editor automatically formatted a jsx file and introduced some newlines that have no effect on the behavior of the jsx.
I feel that "preserviceWhitespace" is a complicated topic in jsx but I have to thing about it more for a qualified opinion.
Thank you for being open for pull requests, I haven't decided yet how to solve this.
Hi,
thank you for this simple library, I have one detail problem with newlines.
This code works correctly:
and it generates
But if I add a newline "in" the children"
then it generates an array with 4 elements
Am I the first one to have this problem?
Having an array of 4 is very bad in my opinion I think it should always have 3 and then I can iterate through the children. Maybe I understood jsx wrongly but this is my opinion do you agree?
The text was updated successfully, but these errors were encountered: