aboutsummaryrefslogtreecommitdiff
path: root/src/string_joiner.zig
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-03-05 19:15:25 -0800
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-03-05 19:33:25 -0800
commit093807391a9563ad36c2b04a286da23d09fad835 (patch)
tree5485bda684d4f04b6a5af9a12f509fd47e906be1 /src/string_joiner.zig
parent18c923596a5b6480fa5a841bd0a6adfdb365b831 (diff)
downloadbun-093807391a9563ad36c2b04a286da23d09fad835.tar.gz
bun-093807391a9563ad36c2b04a286da23d09fad835.tar.zst
bun-093807391a9563ad36c2b04a286da23d09fad835.zip
[JS Parser] dot property shorthand for JSX
This is a non-standard backwards-compatible feature that I suspect other tooling will soon adopt (and expect to help other tooling adopt it) ```jsx var hello = {hi: 'yo'}; export const Foo = () => <Bar {hello.hi} /> ``` Desugars into: ```jsx var hello = {hi: 'yo'}; export const Foo = () => <Bar hi={hello.hi} /> ``` This works with defines and macros too. ```jsx export const Foo = () => <Bar {process.env.NODE_ENV} /> ``` ```jsx export const Foo = () => <Bar NODE_ENV="development" /> ```
Diffstat (limited to 'src/string_joiner.zig')
0 files changed, 0 insertions, 0 deletions