Skip to content

Commit

Permalink
use fuller example
Browse files Browse the repository at this point in the history
  • Loading branch information
dferber90 committed Dec 2, 2021
1 parent 632788b commit ffe2eb3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
4 changes: 1 addition & 3 deletions example/components/Result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,7 @@ export function Result(props: { value: any; label?: string }) {
<summary className="p-1">History ({previousResults.length})</summary>

<div className="p-2 text-md">
This section the previous return values of the{" "}
<code>useFlags()</code> hook. You can use it to see how
<code>@happykit/flags</code> behaves.
Previous return values of the <code>useFlags()</code> hook.
</div>

{previousResults.map((result, index) => (
Expand Down
19 changes: 15 additions & 4 deletions example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"strict": false,
Expand All @@ -14,8 +18,15 @@
"isolatedModules": true,
"strictNullChecks": true,
"noImplicitAny": true,
"jsx": "preserve"
"jsx": "preserve",
"incremental": true
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx"
],
"exclude": [
"node_modules"
]
}

1 comment on commit ffe2eb3

@vercel
Copy link

@vercel vercel bot commented on ffe2eb3 Dec 2, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.