next with ts code example Example: next with typescript yarn add --dev typescript @types/react @types/node