Stefan Baumgartner

List of articles

When you work on modern JS apps you most likely use Webpack. Webpack always looked like a very complicated build tool to me, until I realised that it’s nothing but a JavaScript bundler. A JavaScript bundler that allows you to bundle everything! CSS, Markdown, SVGs, JPEGs, you name. It exists and helps the web, you can bundle it.

React’s context API has be slumbering inside for a while. With one of the latest releases, they decide to open
this API to everybody. It’s very nice to use if you like render props. If not, there’s always the new hooks
API that makes it even easier.

TypeScript works amazingly well with context. You don’t need to provide any type definitions at all. Only in some
edge cases.

Type predicates in TypeScript help you narrowing down your types based on conditionals. They’re similar to type guards, but work on functions.
They way the work is, if a function returns true, change the type of the paramter to something more useful.

If you follow me you know that I’m super late to the React game. It was not until functional components showed up that I got
really interested in the framework. I just loved the idea of having everything wrapped in an easy function rather than needing
to navigate up and down a class to get everything together. One thing that put me off in the beginning though was JSX. And I’m
sure I’m not the only one. Every time I talk to people about my newly found React love, this point comes up constantly.

Hooks are a new feature in React that I personally find pretty exciting. Shortly after their release in React 16.7., people started
developing TypeScript typings via DefinitelyTyped. They’re pretty good, as you don’t have to do much to get all the type safety you need. I put together a little list of things to consider for all hook types in my TypeScript + React guide.

We just started the Call for Presentations for the upcoming DevOne conference,
and I couldn’t be more excited. Last year’s proposals where excellent and a great addition to our
line-up. And by looking at the people who already registered interest, I’m sure that there’s a ton of
great stuff coming up.

I’m writing these lines as I fly back from an excellent Angular Connect. I started public speaking a couple of years ago, and this particular talk will be one I’m going to remember for a long time. I think it’s easily on par with my most favourite speaking experience that I had back in 2013 with Breaking Development.

When starting with TypeScript it took not much time to stumble upon some of the type system’s odds. Odds that make a lot of sense if you take a closer look. In this article I want to show you why and how in some cases, TypeScript allows non-matching method signatures.