Today we'll see how we can author and publish JS packages with Flow, adding types to our JavaScript in order to have more confidence in our code and improve the development experience. We'll also see how we can publish types so developers using our code can benefit from the fact that it's typed.
In this post we'll look at how to use CSS Modules in React using Webpack. We'll configure Webpack and the CSS Loader to parse CSS and load it in the browser. By keeping the CSS scoped to each component we can avoid any CSS conflicts and make CSS much easier to deal with.