diff options
author | 2022-12-09 16:41:38 -0800 | |
---|---|---|
committer | 2022-12-09 16:41:38 -0800 | |
commit | 88538b7c2c68fe506d0a20a8f5b78e47c6c60299 (patch) | |
tree | e27cae0caf7a42ff82177d38911693fcd3720ce8 /test/bun.js/solid-dom-fixtures/conditionalExpressions/code.js | |
parent | 79138c4c7cb72a5f84c9a81720a73d283d78b1be (diff) | |
download | bun-88538b7c2c68fe506d0a20a8f5b78e47c6c60299.tar.gz bun-88538b7c2c68fe506d0a20a8f5b78e47c6c60299.tar.zst bun-88538b7c2c68fe506d0a20a8f5b78e47c6c60299.zip |
Deprecate very incomplete Solid.js JSX transform
We don't have time to do a good job of this and Bun.plugin makes it possible to use Solid with Bun
Diffstat (limited to 'test/bun.js/solid-dom-fixtures/conditionalExpressions/code.js')
-rw-r--r-- | test/bun.js/solid-dom-fixtures/conditionalExpressions/code.js | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/test/bun.js/solid-dom-fixtures/conditionalExpressions/code.js b/test/bun.js/solid-dom-fixtures/conditionalExpressions/code.js deleted file mode 100644 index 80f1a6a4f..000000000 --- a/test/bun.js/solid-dom-fixtures/conditionalExpressions/code.js +++ /dev/null @@ -1,71 +0,0 @@ -const template1 = <div>{simple}</div>; - -const template2 = <div>{state.dynamic}</div>; - -const template3 = <div>{simple ? good : bad}</div>; - -const template4 = <div>{simple ? good() : bad}</div>; - -const template5 = <div>{state.dynamic ? good() : bad}</div>; - -const template6 = <div>{state.dynamic && good()}</div>; - -const template7 = ( - <div>{state.count > 5 ? (state.dynamic ? best : good()) : bad}</div> -); - -const template8 = <div>{state.dynamic && state.something && good()}</div>; - -const template9 = <div>{(state.dynamic && good()) || bad}</div>; - -const template10 = ( - <div>{state.a ? "a" : state.b ? "b" : state.c ? "c" : "fallback"}</div> -); - -const template11 = ( - <div>{state.a ? a() : state.b ? b() : state.c ? "c" : "fallback"}</div> -); - -const template12 = <Comp render={state.dynamic ? good() : bad} />; - -// no dynamic predicate -const template13 = <Comp render={state.dynamic ? good : bad} />; - -const template14 = <Comp render={state.dynamic && good()} />; - -// no dynamic predicate -const template15 = <Comp render={state.dynamic && good} />; - -const template16 = <Comp render={state.dynamic || good()} />; - -const template17 = <Comp render={state.dynamic ? <Comp /> : <Comp />} />; - -const template18 = <Comp>{state.dynamic ? <Comp /> : <Comp />}</Comp>; - -const template19 = <div innerHTML={state.dynamic ? <Comp /> : <Comp />} />; - -const template20 = <div>{state.dynamic ? <Comp /> : <Comp />}</div>; - -const template21 = <Comp render={state?.dynamic ? "a" : "b"} />; - -const template22 = <Comp>{state?.dynamic ? "a" : "b"}</Comp>; - -const template23 = <div innerHTML={state?.dynamic ? "a" : "b"} />; - -const template24 = <div>{state?.dynamic ? "a" : "b"}</div>; - -const template25 = <Comp render={state.dynamic ?? <Comp />} />; - -const template26 = <Comp>{state.dynamic ?? <Comp />}</Comp>; - -const template27 = <div innerHTML={state.dynamic ?? <Comp />} />; - -const template28 = <div>{state.dynamic ?? <Comp />}</div>; - -const template29 = <div>{(thing() && thing1()) ?? thing2() ?? thing3()}</div>; - -const template30 = <div>{thing() || thing1() || thing2()}</div>; - -const template31 = ( - <Comp value={count() ? (count() ? count() : count()) : count()} /> -); |