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 ce62cfd
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 4 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
3 changes: 1 addition & 2 deletions packages/types/src/generated/types.generated.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { Schema } from '../schema';

import { Type, TypeConstructorOptions } from '../node';
import { Schema } from '../schema';

type StateParameters = {
program: Program;
Expand Down
17 changes: 17 additions & 0 deletions pnpm-lock.yaml

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

3 changes: 2 additions & 1 deletion site/constants/encoded-dummy-program.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@
"@types/node": "18.7.15",
"@types/prettier": "^2.7.2",
"@types/randomcolor": "^0.5.6",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"autoprefixer": "^10.4.13",
"eslint": "^8.23.0",
"eslint-config-next": "13.2.4",
Expand Down

0 comments on commit ce62cfd

Please sign in to comment.