Skip to content

Instantly share code, notes, and snippets.

@Tanapruk
Created February 23, 2019 14:27
Show Gist options
  • Save Tanapruk/c0389466b0b8c16c809f39ddf7ef45f6 to your computer and use it in GitHub Desktop.
Save Tanapruk/c0389466b0b8c16c809f39ddf7ef45f6 to your computer and use it in GitHub Desktop.
nextJS + Typescript development encounter.

Typescript Linting

  • You need to define type to each object if it does not exist then you need to create an interface.
  • It is what I do every now and then when developing Android app. Yet, developing in Javascript made my lazy.

Babel configurations

  • A new library may need to add a babel plugin to the .babelrc first.
  • You cannot just add a new line. Don't forget to add a dependency, too.

MaterialUI

  • Its document is less friendly than antd.
  • Some elements dont match my design. Took me a long time to switch to antd.

Importing a css file in a js file is abnormal.

  • You need a good babel configuration.

Creating static files to deploy to host

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment