@builder.io/mitosis 0.0.45-5 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/__tests__/builder.test.js +71 -68
- package/dist/src/__tests__/context.test.js +13 -10
- package/dist/src/__tests__/data/basic.raw.jsx +1 -1
- package/dist/src/__tests__/data/blocks/button-with-metadata.raw.jsx +1 -1
- package/dist/src/__tests__/data/blocks/columns.raw.jsx +8 -2
- package/dist/src/__tests__/data/blocks/custom-code.raw.jsx +3 -3
- package/dist/src/__tests__/data/blocks/embed.raw.jsx +3 -3
- package/dist/src/__tests__/data/blocks/form.raw.jsx +5 -5
- package/dist/src/__tests__/data/blocks/image.raw.jsx +4 -4
- package/dist/src/__tests__/data/blocks/stamped-io.raw.jsx +4 -4
- package/dist/src/__tests__/data/context/component-with-context.lite.jsx +2 -2
- package/dist/src/__tests__/data/context/simple.context.lite.js +1 -1
- package/dist/src/__tests__/html.test.js +2 -2
- package/dist/src/__tests__/liquid.test.js +34 -34
- package/dist/src/__tests__/parse-jsx.test.js +1 -1
- package/dist/src/__tests__/qwik.test.js +197 -50
- package/dist/src/__tests__/react-native.test.js +35 -35
- package/dist/src/__tests__/react.test.js +35 -35
- package/dist/src/__tests__/solid.test.js +32 -32
- package/dist/src/__tests__/vue.test.js +35 -34
- package/dist/src/generators/angular.d.ts +4 -7
- package/dist/src/generators/angular.js +77 -81
- package/dist/src/generators/builder.d.ts +4 -4
- package/dist/src/generators/builder.js +57 -57
- package/dist/src/generators/context/react.d.ts +3 -1
- package/dist/src/generators/context/react.js +20 -17
- package/dist/src/generators/html.d.ts +5 -9
- package/dist/src/generators/html.js +205 -199
- package/dist/src/generators/liquid.d.ts +5 -9
- package/dist/src/generators/liquid.js +62 -59
- package/dist/src/generators/mitosis.d.ts +6 -7
- package/dist/src/generators/mitosis.js +61 -63
- package/dist/src/generators/qwik/component.d.ts +20 -0
- package/dist/src/generators/qwik/component.js +117 -0
- package/dist/src/generators/qwik/directives.d.ts +2 -0
- package/dist/src/generators/qwik/directives.js +27 -0
- package/dist/src/generators/qwik/handlers.d.ts +4 -0
- package/dist/src/generators/qwik/handlers.js +80 -0
- package/dist/src/generators/qwik/index.d.ts +2 -0
- package/dist/src/generators/qwik/index.js +9 -0
- package/dist/src/generators/qwik/jsx.d.ts +4 -0
- package/dist/src/generators/qwik/jsx.js +124 -0
- package/dist/src/generators/qwik/src-generator.d.ts +79 -0
- package/dist/src/generators/qwik/src-generator.js +427 -0
- package/dist/src/generators/qwik/styles.d.ts +7 -0
- package/dist/src/generators/qwik/styles.js +94 -0
- package/dist/src/generators/react-native.d.ts +4 -7
- package/dist/src/generators/react-native.js +53 -43
- package/dist/src/generators/react.d.ts +4 -8
- package/dist/src/generators/react.js +122 -114
- package/dist/src/generators/solid.d.ts +4 -8
- package/dist/src/generators/solid.js +55 -54
- package/dist/src/generators/svelte.d.ts +4 -7
- package/dist/src/generators/svelte.js +120 -123
- package/dist/src/generators/swift-ui.d.ts +2 -2
- package/dist/src/generators/swift-ui.js +62 -62
- package/dist/src/generators/template.d.ts +4 -8
- package/dist/src/generators/template.js +48 -45
- package/dist/src/generators/vue.d.ts +9 -9
- package/dist/src/generators/vue.js +170 -169
- package/dist/src/helpers/babel-transform.js +9 -9
- package/dist/src/helpers/camel-case.d.ts +8 -0
- package/dist/src/helpers/camel-case.js +18 -0
- package/dist/src/helpers/collect-styles.js +39 -37
- package/dist/src/helpers/dash-case.js +1 -1
- package/dist/src/helpers/generic-format.test.js +2 -2
- package/dist/src/helpers/get-components-used.js +2 -2
- package/dist/src/helpers/get-components.js +3 -3
- package/dist/src/helpers/get-props.js +1 -1
- package/dist/src/helpers/get-refs.js +2 -2
- package/dist/src/helpers/get-state-object-string.js +52 -39
- package/dist/src/helpers/get-state-used.js +1 -1
- package/dist/src/helpers/get-styles.js +1 -1
- package/dist/src/helpers/getters-to-functions.js +4 -4
- package/dist/src/helpers/handle-missing-state.js +1 -1
- package/dist/src/helpers/has-component.js +2 -2
- package/dist/src/helpers/has-props.js +1 -1
- package/dist/src/helpers/is-children.js +1 -1
- package/dist/src/helpers/json.d.ts +1 -0
- package/dist/src/helpers/json.js +17 -0
- package/dist/src/helpers/map-refs.js +7 -6
- package/dist/src/helpers/map-to-attributes.js +4 -4
- package/dist/src/helpers/map-to-css.js +2 -2
- package/dist/src/helpers/parse-node.js +2 -2
- package/dist/src/helpers/parse-reactive-script.js +4 -4
- package/dist/src/helpers/patterns.d.ts +2 -0
- package/dist/src/helpers/patterns.js +5 -0
- package/dist/src/helpers/process-http-requests.js +1 -1
- package/dist/src/helpers/process-tag-references.js +4 -4
- package/dist/src/helpers/remove-surrounding-block.test.js +1 -1
- package/dist/src/helpers/render-imports.js +7 -7
- package/dist/src/helpers/replace-idenifiers.js +1 -1
- package/dist/src/helpers/strip-meta-properties.js +2 -2
- package/dist/src/helpers/trace-reference-to-module-path.js +1 -1
- package/dist/src/helpers/traverse-nodes.js +2 -2
- package/dist/src/helpers/try-prettier-format.js +1 -1
- package/dist/src/index.d.ts +3 -1
- package/dist/src/index.js +3 -1
- package/dist/src/jsx-types.d.ts +1 -1
- package/dist/src/modules/plugins.d.ts +2 -10
- package/dist/src/parsers/angular.js +13 -13
- package/dist/src/parsers/builder.d.ts +1 -1
- package/dist/src/parsers/builder.js +56 -59
- package/dist/src/parsers/context.js +2 -2
- package/dist/src/parsers/jsx.js +59 -87
- package/dist/src/parsers/liquid.js +193 -195
- package/dist/src/plugins/compile-away-builder-components.d.ts +1 -1
- package/dist/src/plugins/compile-away-builder-components.js +330 -91
- package/dist/src/plugins/compile-away-components.js +3 -3
- package/dist/src/plugins/map-styles.js +3 -3
- package/dist/src/targets.d.ts +24 -0
- package/dist/src/targets.js +30 -0
- package/dist/src/types/config.d.ts +31 -0
- package/dist/src/types/{jsx-lite-component.js → config.js} +0 -0
- package/dist/src/types/generators.d.ts +0 -0
- package/dist/src/types/generators.js +1 -0
- package/dist/src/types/plugins.d.ts +11 -0
- package/dist/src/types/{jsx-lite-context.js → plugins.js} +0 -0
- package/dist/test/qwik/Accordion/high.jsx +1 -0
- package/dist/test/qwik/Accordion/low.jsx +92 -0
- package/dist/test/qwik/Accordion/med.jsx +9 -0
- package/dist/test/qwik/For/high.jsx +1 -0
- package/dist/test/qwik/For/low.jsx +55 -0
- package/dist/test/qwik/For/med.jsx +9 -0
- package/dist/test/qwik/Image/high.js +1 -0
- package/dist/test/qwik/Image/low.js +68 -0
- package/dist/test/qwik/Image/med.js +9 -0
- package/dist/test/qwik/Image.slow/high.js +1 -0
- package/dist/test/qwik/Image.slow/low.js +68 -0
- package/dist/test/qwik/Image.slow/med.js +9 -0
- package/dist/test/qwik/button/high.js +8 -0
- package/dist/test/qwik/button/low.js +34 -0
- package/dist/test/qwik/button/med.js +9 -0
- package/dist/test/qwik/hello_world/stylesheet/high.jsx +1 -0
- package/dist/test/qwik/hello_world/stylesheet/low.jsx +24 -0
- package/dist/test/qwik/hello_world/stylesheet/med.jsx +9 -0
- package/dist/test/qwik/page-with-symbol/high.js +1 -0
- package/dist/test/qwik/page-with-symbol/low.js +49 -0
- package/dist/test/qwik/page-with-symbol/med.js +9 -0
- package/dist/test/qwik/svg/high.js +1 -0
- package/dist/test/qwik/svg/low.js +30 -0
- package/dist/test/qwik/svg/med.js +9 -0
- package/dist/test/qwik/todo/Todo.cjs/high.cjs +31 -0
- package/dist/test/qwik/todo/Todo.cjs/low.cjs +1 -0
- package/dist/test/qwik/todo/Todo.cjs/med.cjs +59 -0
- package/dist/test/qwik/todo/Todo.js/high.js +5 -0
- package/dist/test/qwik/todo/Todo.js/low.js +0 -0
- package/dist/test/qwik/todo/Todo.js/med.js +1 -0
- package/dist/test/qwik/todo/Todo.tsx/high.tsx +30 -0
- package/dist/test/qwik/todo/Todo.tsx/low.tsx +1 -0
- package/dist/test/qwik/todo/Todo.tsx/med.tsx +34 -0
- package/dist/test/qwik/todos/Todo.tsx/high.tsx +12 -0
- package/dist/test/qwik/todos/Todo.tsx/low.tsx +25 -0
- package/dist/test/qwik/todos/Todo.tsx/med.tsx +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/CHANGELOG.md +0 -4
- package/dist/src/__tests__/data/blocks/tabs.raw.d.ts +0 -11
- package/dist/src/__tests__/data/blocks/tabs.raw.jsx +0 -24
- package/dist/src/__tests__/qoot.test.d.ts +0 -1
- package/dist/src/__tests__/qoot.test.js +0 -115
- package/dist/src/generators/jsx-lite.d.ts +0 -10
- package/dist/src/generators/jsx-lite.js +0 -176
- package/dist/src/generators/qoot.d.ts +0 -21
- package/dist/src/generators/qoot.js +0 -442
- package/dist/src/generators/qwik.d.ts +0 -21
- package/dist/src/generators/qwik.js +0 -458
- package/dist/src/helpers/create-jsx-lite-component.d.ts +0 -2
- package/dist/src/helpers/create-jsx-lite-component.js +0 -16
- package/dist/src/helpers/create-jsx-lite-context.d.ts +0 -4
- package/dist/src/helpers/create-jsx-lite-context.js +0 -18
- package/dist/src/helpers/create-jsx-lite-node.d.ts +0 -2
- package/dist/src/helpers/create-jsx-lite-node.js +0 -16
- package/dist/src/helpers/is-jsx-lite-node.d.ts +0 -2
- package/dist/src/helpers/is-jsx-lite-node.js +0 -7
- package/dist/src/types/jsx-lite-component.d.ts +0 -63
- package/dist/src/types/jsx-lite-context.d.ts +0 -6
- package/dist/src/types/jsx-lite-node.d.ts +0 -13
- package/dist/src/types/jsx-lite-node.js +0 -2
- package/dist/src/types/jsx-lite-styles.d.ts +0 -1
- package/dist/src/types/jsx-lite-styles.js +0 -2
- package/dist/test/qoot/Todo/bundle.js +0 -88
- package/dist/test/qoot/Todo/component.ts +0 -17
- package/dist/test/qoot/Todo/onButtonClick.ts +0 -13
- package/dist/test/qoot/Todo/onInput2Blur.ts +0 -11
- package/dist/test/qoot/Todo/onInput2KeyUp.ts +0 -10
- package/dist/test/qoot/Todo/onInputClick.ts +0 -10
- package/dist/test/qoot/Todo/onLabelDblClick.ts +0 -11
- package/dist/test/qoot/Todo/public.ts +0 -4
- package/dist/test/qoot/Todo/template.tsx +0 -46
- package/dist/test/qoot/Todos/component.ts +0 -9
- package/dist/test/qoot/Todos/onInputClick.ts +0 -14
- package/dist/test/qoot/Todos/public.ts +0 -3
- package/dist/test/qoot/Todos/template.tsx +0 -30
- package/dist/test/qwik/Todo/bundle.js +0 -46
- package/dist/test/qwik/Todo/component.ts +0 -17
- package/dist/test/qwik/Todo/onButtonClick.ts +0 -10
- package/dist/test/qwik/Todo/onInput2Blur.ts +0 -14
- package/dist/test/qwik/Todo/onInput2KeyUp.ts +0 -10
- package/dist/test/qwik/Todo/onInputClick.ts +0 -13
- package/dist/test/qwik/Todo/onLabelDblClick.ts +0 -11
- package/dist/test/qwik/Todo/public.ts +0 -3
- package/dist/test/qwik/Todo/template.tsx +0 -46
- package/dist/test/qwik/Todo.ts +0 -4
- package/dist/test/qwik/Todo_component.ts +0 -17
- package/dist/test/qwik/Todo_onButtonClick.ts +0 -13
- package/dist/test/qwik/Todo_onInput2Blur.ts +0 -14
- package/dist/test/qwik/Todo_onInput2KeyUp.ts +0 -10
- package/dist/test/qwik/Todo_onInputClick.ts +0 -13
- package/dist/test/qwik/Todo_onLabelDblClick.ts +0 -14
- package/dist/test/qwik/Todo_template.tsx +0 -46
- package/dist/test/qwik/Todos/component.ts +0 -9
- package/dist/test/qwik/Todos/onInputClick.ts +0 -14
- package/dist/test/qwik/Todos/public.ts +0 -3
- package/dist/test/qwik/Todos/template.tsx +0 -30
- package/dist/test/qwik/Todos.ts +0 -3
- package/dist/test/qwik/Todos_component.ts +0 -9
- package/dist/test/qwik/Todos_onInputClick.ts +0 -14
- package/dist/test/qwik/Todos_template.tsx +0 -30
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
const qHook = require("@builder.io/qwik").qHook;
|
|
2
|
+
const useEvent = require("@builder.io/qwik").useEvent;
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
exports.Todo_onClick_0 = qHook((props, state) => {
|
|
6
|
+
|
|
7
|
+
state.toggle();
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
exports.Todo_onDblClick_1 = qHook((props, state) => {
|
|
11
|
+
|
|
12
|
+
state.editing = true;
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
exports.Todo_onClick_2 = qHook((props, state) => {
|
|
16
|
+
|
|
17
|
+
todosState.todos.splice(todosState.todos.indexOf(props.todo));
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
exports.Todo_onBlur_3 = qHook((props, state) => {
|
|
21
|
+
|
|
22
|
+
state.editing = false;
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
exports.Todo_onKeyUp_4 = qHook((props, state) => {
|
|
26
|
+
{
|
|
27
|
+
const event = useEvent();
|
|
28
|
+
props.todo.text = event.target.value
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
const h = require("@builder.io/qwik").h;
|
|
2
|
+
const qComponent = require("@builder.io/qwik").qComponent;
|
|
3
|
+
const qHook = require("@builder.io/qwik").qHook;
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
exports.onMountCreateEmptyState = qHook(() => ({}));
|
|
7
|
+
exports.Todo = qComponent({
|
|
8
|
+
onMount: qHook("./med#onMountCreateEmptyState"),
|
|
9
|
+
onRender: qHook("./med#Todo_onRender")
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
exports.Todo_onRender = qHook((props, state) => (
|
|
13
|
+
h(
|
|
14
|
+
"li",
|
|
15
|
+
{
|
|
16
|
+
class: `${props.todo.completed ? 'completed' : ''} ${state.editing ? 'editing' : ''}`
|
|
17
|
+
},
|
|
18
|
+
h(
|
|
19
|
+
"div",
|
|
20
|
+
{
|
|
21
|
+
class: "view"
|
|
22
|
+
},
|
|
23
|
+
h(
|
|
24
|
+
"input",
|
|
25
|
+
{
|
|
26
|
+
type: "checkbox",
|
|
27
|
+
class: "toggle",
|
|
28
|
+
checked: props.todo.completed,
|
|
29
|
+
"on:click": qHook("./high#Todo_onClick_0")
|
|
30
|
+
}
|
|
31
|
+
),
|
|
32
|
+
h(
|
|
33
|
+
"label",
|
|
34
|
+
{
|
|
35
|
+
"on:dblclick": qHook("./high#Todo_onDblClick_1")
|
|
36
|
+
},
|
|
37
|
+
props.todo.text
|
|
38
|
+
),
|
|
39
|
+
h(
|
|
40
|
+
"button",
|
|
41
|
+
{
|
|
42
|
+
class: "destroy",
|
|
43
|
+
"on:click": qHook("./high#Todo_onClick_2")
|
|
44
|
+
}
|
|
45
|
+
)
|
|
46
|
+
),
|
|
47
|
+
state.editing ?
|
|
48
|
+
h(
|
|
49
|
+
"input",
|
|
50
|
+
{
|
|
51
|
+
class: "edit",
|
|
52
|
+
value: props.todo.text,
|
|
53
|
+
"on:blur": qHook("./high#Todo_onBlur_3"),
|
|
54
|
+
"on:keyup": qHook("./high#Todo_onKeyUp_4")
|
|
55
|
+
}
|
|
56
|
+
)
|
|
57
|
+
: null
|
|
58
|
+
)
|
|
59
|
+
));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{qHook,useEvent}from"@builder.io/qwik";export const Todo_onClick_0=qHook((props,state)=>{
|
|
2
|
+
state.toggle();});export const Todo_onDblClick_1=qHook((props,state)=>{
|
|
3
|
+
state.editing = true;});export const Todo_onClick_2=qHook((props,state)=>{
|
|
4
|
+
todosState.todos.splice(todosState.todos.indexOf(props.todo));});export const Todo_onBlur_3=qHook((props,state)=>{
|
|
5
|
+
state.editing = false;});export const Todo_onKeyUp_4=qHook((props,state)=>{{const event=useEvent();props.todo.text = event.target.value}});
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h,qComponent,qHook}from"@builder.io/qwik";export const onMountCreateEmptyState=qHook(()=>({}));export const Todo=qComponent({onMount:qHook("./med#onMountCreateEmptyState"),onRender:qHook("./med#Todo_onRender")});export const Todo_onRender=qHook((props,state)=>(h("li",{class:`${props.todo.completed ? 'completed' : ''} ${state.editing ? 'editing' : ''}`},h("div",{class:"view"},h("input",{type:"checkbox",class:"toggle",checked:props.todo.completed,"on:click":qHook("./high#Todo_onClick_0")}),h("label",{"on:dblclick":qHook("./high#Todo_onDblClick_1")},props.todo.text),h("button",{class:"destroy","on:click":qHook("./high#Todo_onClick_2")})),state.editing?h("input",{class:"edit",value:props.todo.text,"on:blur":qHook("./high#Todo_onBlur_3"),"on:keyup":qHook("./high#Todo_onKeyUp_4")}):null)));
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { qHook, useEvent } from "@builder.io/qwik";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export const Todo_onClick_0 = qHook<any, any>((props, state) => {
|
|
5
|
+
|
|
6
|
+
state.toggle();
|
|
7
|
+
});
|
|
8
|
+
|
|
9
|
+
export const Todo_onDblClick_1 = qHook<any, any>((props, state) => {
|
|
10
|
+
|
|
11
|
+
state.editing = true;
|
|
12
|
+
});
|
|
13
|
+
|
|
14
|
+
export const Todo_onClick_2 = qHook<any, any>((props, state) => {
|
|
15
|
+
|
|
16
|
+
todosState.todos.splice(todosState.todos.indexOf(props.todo));
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
export const Todo_onBlur_3 = qHook<any, any>((props, state) => {
|
|
20
|
+
|
|
21
|
+
state.editing = false;
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const Todo_onKeyUp_4 = qHook<any, any>((props, state) => {
|
|
25
|
+
{
|
|
26
|
+
const event = useEvent();
|
|
27
|
+
props.todo.text = event.target.value
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { h, qComponent, qHook } from "@builder.io/qwik";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export const onMountCreateEmptyState = qHook<any, any>(() => ({}));
|
|
5
|
+
export const Todo = qComponent<any, any>({
|
|
6
|
+
onMount: qHook("./med#onMountCreateEmptyState"),
|
|
7
|
+
onRender: qHook("./med#Todo_onRender")
|
|
8
|
+
});
|
|
9
|
+
|
|
10
|
+
export const Todo_onRender = qHook((props, state) => (
|
|
11
|
+
<li class={`${props.todo.completed ? 'completed' : ''} ${state.editing ? 'editing' : ''}`}>
|
|
12
|
+
<div class="view">
|
|
13
|
+
<input type="checkbox"
|
|
14
|
+
class="toggle"
|
|
15
|
+
checked={props.todo.completed}
|
|
16
|
+
on:click={qHook("./high#Todo_onClick_0")}>
|
|
17
|
+
</input>
|
|
18
|
+
<label on:dblclick={qHook("./high#Todo_onDblClick_1")}>
|
|
19
|
+
{props.todo.text}
|
|
20
|
+
</label>
|
|
21
|
+
<button class="destroy"
|
|
22
|
+
on:click={qHook("./high#Todo_onClick_2")}>
|
|
23
|
+
</button>
|
|
24
|
+
</div>
|
|
25
|
+
{ state.editing ?
|
|
26
|
+
<input class="edit"
|
|
27
|
+
value={props.todo.text}
|
|
28
|
+
on:blur={qHook("./high#Todo_onBlur_3")}
|
|
29
|
+
on:keyup={qHook("./high#Todo_onKeyUp_4")}>
|
|
30
|
+
</input>
|
|
31
|
+
: null
|
|
32
|
+
}
|
|
33
|
+
</li>
|
|
34
|
+
));
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Todo } from "./med.js";
|
|
2
|
+
|
|
3
|
+
import { h, qHook } from "@builder.io/qwik";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export const Todos_onRender = qHook((props, state) => (
|
|
8
|
+
<section class="main">
|
|
9
|
+
{ todosState.todos.length ?
|
|
10
|
+
<input type="checkbox"
|
|
11
|
+
class="toggle-all"
|
|
12
|
+
checked={todosState.allCompleted}
|
|
13
|
+
on:click={qHook("./high#Todos_onClick_0")}>
|
|
14
|
+
</input>
|
|
15
|
+
: null
|
|
16
|
+
}
|
|
17
|
+
<ul class="todo-list">
|
|
18
|
+
{ (todosState.todos || []).map(() => (
|
|
19
|
+
<Todo todo={todo}>
|
|
20
|
+
</Todo>
|
|
21
|
+
))
|
|
22
|
+
}
|
|
23
|
+
</ul>
|
|
24
|
+
</section>
|
|
25
|
+
));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { qComponent, qHook } from "@builder.io/qwik";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
export const onMountCreateEmptyState = qHook<any, any>(() => ({}));
|
|
5
|
+
export const Todos = qComponent<any, any>({
|
|
6
|
+
onMount: qHook("./med#onMountCreateEmptyState"),
|
|
7
|
+
onRender: qHook("./low#Todos_onRender")
|
|
8
|
+
});
|