.jsx isn't actually recommended anymore and is discouraged, react-native doesn't support the extension for example
-
-
Depends on guide. How about .json then.
2 replies 0 retweets 0 likes -
Replying to @bradleymeck @wycats
It's different format though, little in common with .js files
1 reply 0 retweets 1 like -
Is JSON not a subset of JS?
2 replies 0 retweets 0 likes -
Replying to @bradleymeck @wycats
A very tiny one IMO. I don't like JSON for that, but that's not relevant
1 reply 0 retweets 2 likes -
Also it's been around for ages. Literally every tool supports it
1 reply 0 retweets 0 likes -
People are stating only one file ext is supported in their tool, .js as a Script
2 replies 0 retweets 0 likes -
Replying to @bradleymeck @satya164
That doesn't make sense as Node already uses .js for CJS. Tools that assume .js == script already incompatible with all npm
1 reply 1 retweet 2 likes -
Would somewhat agree, but decent amount of legacy or side effect only script dont care. Auto strict however...
1 reply 0 retweets 0 likes -
Replying to @bradleymeck @satya164
var x = 1 not creating a global is a MASSIVE diff with scripts. Breaks every script I wrote in 2007.
2 replies 0 retweets 1 like
auto-strict is probably smaller than that diff
-
-
Maybe, but html Script is single file. Modules form graphs of many
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.