From f5bdce7173d0e00c1e7aab3b95b9e5def066ccf1 Mon Sep 17 00:00:00 2001 From: Bryan Lee Date: Fri, 11 Aug 2023 01:39:06 +0800 Subject: [PATCH] Revert "Format" This reverts commit ca5755e23ad95e34e068b5b20f7bcf97d9f4f559. --- README.md | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index ed1ca2b..d6f24b0 100644 --- a/README.md +++ b/README.md @@ -44,13 +44,13 @@ If the parent store is nullable, then the child store will also be nullable. ```ts type User = { - name: { - first: string; - last: string; - }; - relations: { - partner?: User; - }; + name: { + first: string; + last: string; + }; + relations: { + partner?: User; + }; }; const maybeUser = writable(undefined); @@ -152,14 +152,14 @@ One important method to reduce clutter on your component is to extract functiona ```js export const trackClicks = (node, clicks) => { - const listen = () => { - clicks.update(($clicks) => $clicks + 1); - }; - node.addEventListener('click', listen); - return { - destroy() { - node.removeEventListener('click', listen); - }, - }; + const listen = () => { + clicks.update(($clicks) => $clicks + 1); + }; + node.addEventListener('click', listen); + return { + destroy() { + node.removeEventListener('click', listen); + }, + }; }; ```