Skip to content

Commit

Permalink
Random list is displayed by default
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrilgourgouillon committed Nov 21, 2023
1 parent cf97202 commit 390b149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { getListOfRandomNotes } from "./services/noteService";
import { Button, NotesList } from "./components";

const App = () => {
const [notes, setNotes] = useState<Note[]>([]);
const [notes, setNotes] = useState<Note[]>(getListOfRandomNotes());

const handleOnClick = () => {
setNotes(getListOfRandomNotes());
Expand Down

0 comments on commit 390b149

Please sign in to comment.