diff options
author | 2022-05-20 00:45:51 -0700 | |
---|---|---|
committer | 2022-05-20 00:45:51 -0700 | |
commit | 99d61877d6f411f33e0db578f04b333fb2110ddd (patch) | |
tree | 8802bd59e55c8ed3b5eec695209e59fd28ddfef4 /integration/bunjs-only-snippets/solid-dom-fixtures/fragments/code.js | |
parent | 224cfa91fb550d3acb5d5fefdcc0594d7a12f1dc (diff) | |
download | bun-99d61877d6f411f33e0db578f04b333fb2110ddd.tar.gz bun-99d61877d6f411f33e0db578f04b333fb2110ddd.tar.zst bun-99d61877d6f411f33e0db578f04b333fb2110ddd.zip |
[solid] more progress, no fragments, but still not right
Diffstat (limited to 'integration/bunjs-only-snippets/solid-dom-fixtures/fragments/code.js')
-rw-r--r-- | integration/bunjs-only-snippets/solid-dom-fixtures/fragments/code.js | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/integration/bunjs-only-snippets/solid-dom-fixtures/fragments/code.js b/integration/bunjs-only-snippets/solid-dom-fixtures/fragments/code.js new file mode 100644 index 000000000..0b6021e44 --- /dev/null +++ b/integration/bunjs-only-snippets/solid-dom-fixtures/fragments/code.js @@ -0,0 +1,83 @@ +const multiStatic = ( + <> + <div>First</div> + <div>Last</div> + </> +); + +const multiExpression = ( + <> + <div>First</div> + {inserted} + <div>Last</div> + After + </> +); + +const multiDynamic = ( + <> + <div id={state.first}>First</div> + {state.inserted} + <div id={state.last}>Last</div> + After + </> +); + +const singleExpression = <>{inserted}</>; + +const singleDynamic = <>{inserted()}</>; + +const firstStatic = ( + <> + {inserted} + <div /> + </> +); + +const firstDynamic = ( + <> + {inserted()} + <div /> + </> +); + +const firstComponent = ( + <> + <Component /> + <div /> + </> +); + +const lastStatic = ( + <> + <div /> + {inserted} + </> +); + +const lastDynamic = ( + <> + <div /> + {inserted()} + </> +); + +const lastComponent = ( + <> + <div /> + <Component /> + </> +); + +const spaces = ( + <> + <span>1</span> <span>2</span> <span>3</span> + </> +); +const multiLineTrailing = ( + <> + <span>1</span> + <span>2</span> + <span>3</span> + </> +); |