mirror of
https://github.com/streamich/react-use.git
synced 2026-01-18 14:06:52 +00:00
fix: correct createMemo.story
This commit is contained in:
parent
986b297847
commit
9c8e093155
@ -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);
|
||||
};
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user