I still can't believe everyone has accepted mixing logic and presentation is a good idea. Html mixed with javascript is a mess and I can only imagine what a "mature" React app looks like after a few years of iteration. I can't wait for the "React turns out to be a shit idea" posts in a year or two just like we're seeing with microservices. It's like a mass hallucination or something. Maybe Facebook had Cambridge Anal…
Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
21–30 of 48 posts
Re: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#22I still can't believe everyone has accepted mixing logic and presentation is a good idea. Html mixed with javascript is a mess and I can only imagine what a "mature" React app looks like after a few years of iteration. I can't wait for the "React turns out to be a shit idea" posts in a year or two just like we're seeing with microservices. It's like a mass hallucination or something. Maybe Facebook had Cambridge Anal…
Re: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#23I still can't believe everyone has accepted mixing logic and presentation is a good idea. Html mixed with javascript is a mess and I can only imagine what a "mature" React app looks like after a few years of iteration. I can't wait for the "React turns out to be a shit idea" posts in a year or two just like we're seeing with microservices. It's like a mass hallucination or something. Maybe Facebook had Cambridge Anal…
Re: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#24Re: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#25I still can't believe everyone has accepted mixing logic and presentation is a good idea. Html mixed with javascript is a mess and I can only imagine what a "mature" React app looks like after a few years of iteration. I can't wait for the "React turns out to be a shit idea" posts in a year or two just like we're seeing with microservices. It's like a mass hallucination or something. Maybe Facebook had Cambridge Anal…
This is such a poorly done react app, you can not take this as the current state of react. If you've never seen a mature react app, and have at best checked out a few blogs that try to compare it to other frameworks, then you have not been exposed to nearly enough to make a real decision and are throwing around empty opinions.
Re: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#26I still can't believe everyone has accepted mixing logic and presentation is a good idea. Html mixed with javascript is a mess and I can only imagine what a "mature" React app looks like after a few years of iteration. I can't wait for the "React turns out to be a shit idea" posts in a year or two just like we're seeing with microservices. It's like a mass hallucination or something. Maybe Facebook had Cambridge Anal…
Re: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#27I still can't believe everyone has accepted mixing logic and presentation is a good idea. Html mixed with javascript is a mess and I can only imagine what a "mature" React app looks like after a few years of iteration. I can't wait for the "React turns out to be a shit idea" posts in a year or two just like we're seeing with microservices. It's like a mass hallucination or something. Maybe Facebook had Cambridge Anal…
And you can also create stateless components without any logic, eg.:
const Header = () => Hello WorldRe: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#28Earlier quoted context omitted.
This is such a poorly done react app, you can not take this as the current state of react. If you've never seen a mature react app, and have at best checked out a few blogs that try to compare it to other frameworks, then you have not been exposed to nearly enough to make a real decision and are throwing around empty opinions.
I'll admit mostly ignorance since I've only done a Udemy react course and read some blogs. However, I've never seen it done any other way. Isn't JSX an integral part of React?
JSX is not required. Literally, all you need is to include script tags for `react.js` and `react-dom.js`, and then you write "raw" `React.createElement()` calls.
However, most people find that to be too repetitive. So, the "default" approach is to use JSX syntax, which converts `Text` into `React.createElement(MyComponent, {a : 1, b : "blah"}, "Text")`.
Yes, JSX requires a transformation/compiler step. As I said earlier, a typical "real" app needs build tools to bundle anyway, and you're probably targeting a variety of browsers but don't want to restrict yourself to the least common denominator subset of JS syntax, so you're probably already using a transpiler too.
But, if you truly don't want to use JSX for whatever reason, there's plenty of choices:
- Write raw `React.createElement()` calls by hand
- Alias `React.createElement()` as `h()` so it's shorter
- Use a functional VDOM wrapper generation library like `react-hyperscript-helpers` (https://github.com/Jador/react-hyperscript-helpers/).
- Use a runtime JS templating library like Dominic Gannaway's `t7` templates(https://github.com/trueadm/t7)
- Use an actual separate templating library, like `react-templates`(https://github.com/wix/react-templates) or `handlebars-react`(https://github.com/stevenvachon/handlebars-react)
Almost everyone chooses to use JSX. The docs use JSX. Tutorials across the internet use JSX. It's the accepted approach. But, it's not _required_. You do not _need_ it. There are other options. It's your choice.
[0] https://www.reddit.com/r/javascript/comments/81fkhi/this_may...
Re: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#29"Firebase’s core product is a real-time database service. This means that your users do not need to refresh a page to see updates to the state of the application and it" "Once you have your Firebase project, provision a “Cloud Firestore” database" Cloud Firestore is a traditional NoSQL DB and is not the realtime database product.
Re: Using React, Firebase, and Ant Design to Quickly Prototype Web Applications
#30I still can't believe everyone has accepted mixing logic and presentation is a good idea. Html mixed with javascript is a mess and I can only imagine what a "mature" React app looks like after a few years of iteration. I can't wait for the "React turns out to be a shit idea" posts in a year or two just like we're seeing with microservices. It's like a mass hallucination or something. Maybe Facebook had Cambridge Anal…