Re:Ask HN: Resources for learning advanced JavaScript and React
by CCing on Monday July 31, 2017 @12:19PM
(#14893303)
Typescript works fine even with all the libs written in js/es6 from npm ?
Re:Ask HN: Resources for learning advanced JavaScript and React
by erkmene on Monday July 31, 2017 @01:18PM
(#14893947)
Most popular libraries these days either include their own typescript definitions, or the definitions are available vie @types (it is as easy as npm install --save-dev @types/library-name)
If on the off chance that no typings are available, you just write a simple namespace declaration (usually a one liner) and start using the library right away, albeit without smart code sensing / completion. See https://stackoverflow.com/questions/22842389/how-to-import-a...
And definitely use typescript if you value good code quality (and your sanity). The advanced type system and compile time type checking is really a boon to the JS ecosystem. https://www.typescriptlang.org
You'd like to get comfortable with the latest tools that compile, transpile and pack the code for you (you might be familiar with that already.) Here might be a good start: https://medium.com/@fay_jai/getting-started-with-reactjs-typ...
Have fun!