Did you know that FastTag functions are just partials that pass in the tag name as the first element of the list?
@jeremyphoward
-

FastTag is a Simple 3-Element List Structure
By
–
Did you know that a FastTag is just a 3-element list?
-
ES6 String Templates and JSX Evolution in Functional Components
By
–
I do wonder if es6 string templates existed at the time of jsx whether that would have been used with functional components instead. I suspect that it would.
-

Element Functions as Partials Over Data Structures
By
–
The element functions are then just partials over that data structure
-

FastTag and Hyperscript: Three Element List Base Architecture
By
–
FastTag uses the same base as that hyperscript thing btw — it's literally just a 3 element list
-
JSX Syntax Evolution and Historical Design Decisions
By
–
Yeah I don't love the {}, but it's not so bad I guess 😀 IIRC at the time jsx was created some of this syntax didn't exist?
-
Auto-formatting tools for nested functional components
By
–
No there aren't any auto-formatting tools yet I've found that do a good job of laying out nested functional components. E.g here's an example formatted with yapf:
-
VS Code Parenthesis Matching Tools Discussion
By
–
Yes spent quite a while trying that direction, but ultimately decided I don't like it as much. But it's a perfectly reasonable choice and there's no best answer. BTW vscode has really great tools for parens-matching nowadays (disabled by default sadly).
-
F-String Alternatives in Python String Formatting
By
–
Actually we don't even need the f-string. `H1('Hello ', name)` would work too…
