diff --git a/README.md b/README.md index 66c5e8cb..4bca431f 100644 --- a/README.md +++ b/README.md @@ -49,7 +49,7 @@ export default function Me({ cookies }) { export async function getServerSideProps({ ctx }) { // Parse - parseCookies(ctx) + const cookies = parseCookies(ctx) // Set setCookie(ctx, 'fromGetServerSideProps', 'value', { @@ -60,8 +60,8 @@ export async function getServerSideProps({ ctx }) { // Destroy // destroyCookie(ctx, 'cookieName') - return { cookies }; -}; + return { cookies } +} ``` OR @@ -69,13 +69,13 @@ OR ```js import nookies from 'nookies' -export default function Me () { +export default function Me() { return