Re:You don't need Next.js – Why we migrated from Next to React
by TekMol on Wednesday January 01, 2025 @02:38PM
(#42568620)
How is React easier to learn and debug?
Re:You don't need Next.js – Why we migrated from Next to React
by mzronek on Wednesday January 01, 2025 @03:22PM
(#42568964)
With Full-Stack React you will use JSX to directly render HTML. Logic is done with Javascript, so you don't need to learn an additional language. There is also no mapping to Javascript and you can use the standard toolchain (for debugging).
Re:You don't need Next.js – Why we migrated from Next to React
by TekMol on Thursday January 02, 2025 @03:30AM
(#42572742)
How does JSX "directly" render to HTML? Have you compared the codebase of the React to EJS? EJS is much more direct. And the logic is also Javascript.
What do you mean by "no mapping to Javascript"? It is not as if React is part of the Browser API.
Things get worse when you bring Javascript into the mix. You need to create Javascript code with your template engine without any Javascript toolchain.
Hard no to the string concat approach for me.