Skip to content

Commit aae0f94

Browse files
committed
fix undef check, doc
1 parent f4f3f44 commit aae0f94

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

doc/quickstart.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,19 @@ You'll need to setup the project before you get to actual coding.
1212
You need a React project in order to start using tea-cup.
1313
In order to keep things simple, we'll use the infamous `create-react-app` :
1414

15-
npx create-react-app my-app --typescript
15+
yarn create react-app my-app --template typescript
1616
cd my-app
1717

1818
### Add tea-cup to your dependencies
1919

20-
npm install react-tea-cup --save
20+
yarn add -D react-tea-cup tea-cup-core
2121

2222
### Run the dev server
2323

2424
We'll start the dev server, and let it recompile everything
2525
when we save files :
2626

27-
npm start
27+
yarn start
2828

2929
This should also open your default browser to http://localhost:3000
3030
and show you the default generated app.

tea-cup/src/TeaCup/Program.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ export class Program<Model, Msg> extends Component<ProgramProps<Model, Msg>, nev
153153
}
154154

155155
render(): ReactNode {
156-
if (this.currentModel && this.bd) {
156+
if (this.currentModel !== undefined && this.bd) {
157157
return this.props.view(this.bd, this.currentModel);
158158
}
159159
return null;

0 commit comments

Comments
 (0)