What should go into JSX 2.0?
11–20 of 102 posts
Re: What should go into JSX 2.0?
#12Earlier quoted context omitted.
How about ? Because that should already work, no?
You'd have to spread in the object, right?
Re: What should go into JSX 2.0?
#13Since when does Reason have JSX?
Re: What should go into JSX 2.0?
#14"What should go into JSX 2.0?" would be a much clearer title outside of the context of the GitHub issue.
Yup, even the issues not marked controversial seem so to me. I think JSX is quite nice but it has its limits/annoyances. One is obviously that it's not real HTML5. I would like to see a successor that is more like HTML5 without the X. No idea how that could be realized though... ;)
Re: What should go into JSX 2.0?
#15Re: What should go into JSX 2.0?
#16Problem is that the inner component will still be parsed and fail with cannot read property person of undefined. Yes, you can do this with a simple condition in your render function, but then it's not declarative any more.
Re: What should go into JSX 2.0?
#17I like how the if proposal is down voted, probably because it's mentioning Angular. Conditional rendering in React is not always very clean. Most codebases end up resorting with something similar to this in a container to show a spinner while data is loading and rendering it when done. Problem is that the inner component will still be parsed and fail with cannot read property person of undefined. Yes, you can do this…
Re: What should go into JSX 2.0?
#18I like how the if proposal is down voted, probably because it's mentioning Angular. Conditional rendering in React is not always very clean. Most codebases end up resorting with something similar to this in a container to show a spinner while data is loading and rendering it when done. Problem is that the inner component will still be parsed and fail with cannot read property person of undefined. Yes, you can do this…