Skip to content

Commit

Permalink
chore: fix react example
Browse files Browse the repository at this point in the history
  • Loading branch information
prevwong committed Jul 8, 2024
1 parent a9cd8bf commit 5e2b90e
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
3 changes: 3 additions & 0 deletions examples/01-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,8 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"typescript": "4.9.4"
},
"devDependencies": {
"@types/react": "^17.0.2"
}
}
2 changes: 1 addition & 1 deletion examples/01-react/src/components/Editor/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const Editor = () => {
return;
}
reka.change(() => {
appComponent.template.children.push(
t.assert(appComponent.template, t.TagTemplate).children.push(
t.tagTemplate({
tag: 'text',
props: {
Expand Down
1 change: 1 addition & 0 deletions examples/01-react/src/components/Renderer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const Renderer = observer((props: RendererProps) => {
}

if (
props.view instanceof t.FrameView ||
props.view instanceof t.SlotView ||
props.view instanceof t.FragmentView
) {
Expand Down
13 changes: 12 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5e2b90e

Please sign in to comment.