reck1ess / next-realworld-example-app

Exemplary real world application built with Next.js + SWR

Home Page:https://next-realworld-example-app.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Factor out new article vs edit article pages

cirosantilli opened this issue · comments

OK, I managed it as in: ourbigbook/ourbigbook@8c05857 by creating a function that returns a function.

I also made it use ArticleAPI.update in the component rather than raw axios.

Now I'm going to convert to the better new API getStaticProps + getStaticPaths since my repo is a fullstack integration.