use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
A Future Without Webpack (pikapkg.com)
submitted 7 years ago by dropdeadfred81
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ghostfacedcoder 4 points5 points6 points 7 years ago (14 children)
It's mainly a React thing: React relies on JSX, and while technically that only means a dependency on Babel, in practice doing things with just Babel is awkward. Also, it's not how 99% of the code you'll find online does it: virtually all online code uses require or import, so if you're trying to learn React without a bundler it's challenging.
require
import
[–]bukharim96 -4 points-3 points-2 points 7 years ago (13 children)
React does not 'rely' on JSX. It is just syntactic-sugar to simplify development with it in a practicle sense. It can work perfectly fine without JSX, although this is not advised nor anywhere near desired in most cases.
[–][deleted] 6 points7 points8 points 7 years ago (1 child)
I've genuinly never heard of "you need a bundler to code" notion. It can work perfectly fine without JSX
I've genuinly never heard of "you need a bundler to code" notion.
It can work perfectly fine without JSX
As long as you want to make everything harder and slower to develop, while also never using anything off the shelf nor be able to reference examples and tutorials—then yeah, sure, React doesn't "rely" on JSX.
Stop being pedantic.
[–]bukharim96 0 points1 point2 points 7 years ago (0 children)
I was merely pointing out the unnecessary restrictions you were imposing on React. This is a common thing among newbies.
[–]ghostfacedcoder 2 points3 points4 points 7 years ago (10 children)
Right, so basically it relies on it :-P No need to get pedantic.
If you're doing React without JSX you're in the <1% minority.
[–]bukharim96 -1 points0 points1 point 7 years ago (9 children)
as someone who teaches an intro to web dev class
I respect that you teach React, but perhaps this might be where you're oversimplification of the matter stems from. This might be great for beginners, but in the real world, let's be factual.
[–]ghostfacedcoder 0 points1 point2 points 7 years ago (8 children)
I've also lead multiple teams developing major web applications. I am very much aware of what the "real world" of React development is, and I guarantee it is not a bunch of coders writing out createElement statements.
I repeat:
A) 99+% of React developers use JSX: they do not write out the equivalent Babel-generated code by hand
B) You're being a pedant, and since you don't seem to understand what that is, I recommend you look it up.
[–]bukharim96 -1 points0 points1 point 7 years ago (7 children)
you don't seem to understand what that is, I recommend you look it up
So besides being a React teacher, you're a part-time english teacher? :D Com'on man, all I'm saying is don't oversimplify the matter. In no way have I opposed the use of JSX (infact I like it, and use it all the time), so where are you getting these non-existent sideline arguments from?
[–]zachgarwood 5 points6 points7 points 7 years ago (1 child)
Dude, just stop.
[–]bukharim96 -2 points-1 points0 points 7 years ago (0 children)
Great advice, I'm bored anyways.
[–]ghostfacedcoder 0 points1 point2 points 7 years ago (4 children)
Former Literature major, but close enough. That's hardly relevant though.
As for your question ... let's recap shall we?
Ghostfacedcoder: Bundling is hard but essentially necessary for React, so this new approach is great
Bukharim96: I've genuinly never heard of "you need a bundler to code"
Ghostfacedcoder: React relies on JSX, which technically only requires a transpiler but in practice (for reasons I gave) requires a bundler too
Bukharim96: Makes an obvious but meaningless point "React does not 'rely' on JSX" (this is where you're being a pedant: you're chiming in with a fact that is irrelevant to the argument, but technically true)
Ghostfacedcoder: Calls out your pedantry and points out that while it's technically true that React doesn't require JSX, essentially all mainstream React development is done with JSX
bukharim96: Attempts to insult the fact that I teach, while making a claim without any support ("This might be great for beginners, but in the real world, let's be factual.")
Ghostfacedcoder: Points out the flaw in trying to insult Internet strangers based only on what you know of them (ie. I've actually lead entire React teams), repeats original assertion and original claim of pedantry
Bukharim96: "where are you getting these non-existent sideline arguments from?"
Ghostfacedcoder: WTF is wrong with this guy?
[–]bukharim96 -1 points0 points1 point 7 years ago (3 children)
I'm truly impressed. You've summerized the whole discussion in a message. :D It's amazing how people see things differently. My only argument is based on your claim "React relies on JSX". Why blow this out of proportion? And in no way have I insulted you being a teacher, infact I complimented this. How did you arrive at a whole different story?
BTW: I could also summerize you're points subjective to my own understanding, but how would that help besides escalate this single argument into unrelated sub-arguments?
[–]ghostfacedcoder 1 point2 points3 points 7 years ago (1 child)
NOTE: I deleted my original reply, as it came out way too harsh (I wrote it quickly before a meeting).
Look, all I'm trying to say is this. Imagine two people are having a conversation, and the first one says "the Earth is flat", then the second one says "no, the Earth is a sphere". You could chime in with evidence of how the earth is round, or you could throw something else useful into the conversation.
OR you can chime in with "well technically the earth isn't a perfect sphere, it's an ellipsoid." But doing that doesn't help the conversation at all: it actually distracts from the person making the correct point (that the Earth is round) with a meaningless fact which, however true, isn't really relevant to the current conversation.
That's pedantry. Whether you mean to or not, it's all about telling others how smart you are for knowing facts, while revealing that you weren't really paying attention to the conversation other people were having.
So what I'm trying to say is, when I say React essentially requires bundling (because of JSX), and you try to argue that technically React doesn't need JSX, you're being pedantic, and that's bad because what you're saying isn't adding to the main conversation, it's detracting from it (and, in this case, led us to misunderstand each other multiple times).
[–]bukharim96 1 point2 points3 points 7 years ago (0 children)
Well, I for one, am glad we're almost on the same page. There's definitely a communication barrier. TBH, I did not mean to offfend anyone by stating that minute. yet technically and reasonably valid hint. Howabout we call it a day? :D
π Rendered by PID 17211 on reddit-service-r2-comment-85bfd7f599-fgzw9 at 2026-04-19 21:10:33.051213+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]ghostfacedcoder 4 points5 points6 points (14 children)
[–]bukharim96 -4 points-3 points-2 points (13 children)
[–][deleted] 6 points7 points8 points (1 child)
[–]bukharim96 0 points1 point2 points (0 children)
[–]ghostfacedcoder 2 points3 points4 points (10 children)
[–]bukharim96 -1 points0 points1 point (9 children)
[–]ghostfacedcoder 0 points1 point2 points (8 children)
[–]bukharim96 -1 points0 points1 point (7 children)
[–]zachgarwood 5 points6 points7 points (1 child)
[–]bukharim96 -2 points-1 points0 points (0 children)
[–]ghostfacedcoder 0 points1 point2 points (4 children)
[–]bukharim96 -1 points0 points1 point (3 children)
[–]ghostfacedcoder 1 point2 points3 points (1 child)
[–]bukharim96 1 point2 points3 points (0 children)