diff --git a/src/__stories__/createMemo.story.tsx b/src/__stories__/createMemo.story.tsx index 9514be8252..2c7d2faa8a 100644 --- a/src/__stories__/createMemo.story.tsx +++ b/src/__stories__/createMemo.story.tsx @@ -4,8 +4,8 @@ import {createMemo} from '..'; import ShowDocs from '../util/ShowDocs'; const fibonacci = n => { - if (n === 0) return 1; - if (n === 1) return 2; + if (n === 0) return 0; + if (n === 1) return 1; return fibonacci(n - 1) + fibonacci(n - 2); };