Skip to content

Commit

Permalink
fix: correct createMemo.md
Browse files Browse the repository at this point in the history
  • Loading branch information
chengruilin committed Mar 8, 2019
1 parent 9c8e093 commit 4e2d639
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/createMemo.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ which receives the same arguments and returns the same result as the original fu
import {createMemo} from 'react-use';

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);
};

Expand Down

0 comments on commit 4e2d639

Please sign in to comment.