From 789d28b83af165258dc7e8b3a44bbd2d48fcc370 Mon Sep 17 00:00:00 2001 From: Leo Goetz Date: Sun, 9 Nov 2025 14:19:26 +0100 Subject: added crud functionality with json file as a db --- src/utils.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/utils.js (limited to 'src/utils.js') diff --git a/src/utils.js b/src/utils.js new file mode 100644 index 0000000..4153ada --- /dev/null +++ b/src/utils.js @@ -0,0 +1,8 @@ +export const listNotes = (notes) => { + notes.forEach(({ id, content, tags }) => { + console.log("id: ", id); + console.log("tags: ", tags); + console.log("content: ", content); + console.log("\n"); + }); +}; -- cgit v1.3