From getting started example uses webpack’s Hot Module Replacement, works great at local environment. The Link
component(?) uses client-side history support. Feels similar to Turbolinks.
NEXT.js, the only special directories are /pages
and /public
. Having brackets ([]
) in the page name makes it a dynamic route. as
prop of Link
make use of browser history. A lot of hidden conventions.
unfetch to fetch a JSON API. Returned Promise
. I know to use then
, but then Promise returns Promise { <pending> }
. Feeding it to React, React complains it cannot render Promise, I need something like stateful component (?).
That’s all for now.