I've just thought of a way to improve the initial props page by adding
an example for a list/detail page structure. To do that, I've created a
separate `/detail` page, and a mock API which calls data from the array
we made on the previous PR.
A ListDetail component is created as an example for displaying detail.
Page structure is also cleaned up. Should I go ahead and add an example
on how to style with styled-jsx + its TS declarations? I might decide to
do it within this week anyway.
The current `examples/with-typescript` is not using the latest type definitions currently available on DefinitelyTyped project for next.
Added new list page examples that demonstrate how to use the new Types for both stateless functional components and classes. Also modified examples for list to demonstrate typings for `getInitialProps`.
* TypeScript example proposal
* removed unused loader
Removed typings
Moved TypeScript to dev dependencies
removed unused typings
changed react typings version
removed react dependency
set next dependency version to latest
removed not needed babel preset
enabled sourcemaps
simplified tsconfig
modified component to be a functional one
* Ignore build
* Making npm script Windows-friendly
* Clean up
* Added readme
* fixed typo