摘要:
Consider this createClassNamesFactory function that's similar to one I built for getting Tailwind class names that could then be passed into a React c 阅读全文
摘要:
This exercise begins with a makeStatus function that takes in an array of TStatuses that extends an array of strings. The statuses are then returned, 阅读全文
摘要:
There are two solutions to this challenge, both with different ways of representing the generic. Solution 1: The first option is using TConfig which e 阅读全文
摘要:
Here we have a Component class that can be passed in TProps. Inside of the constructor it assigns props to this, and provides a getProps method that c 阅读全文
摘要:
Let's we have a form to submit new password. Before we send request to server, we want to force developer to valid the password before sending the req 阅读全文
摘要:
Let's imagine you're building a type helper to extract out the value from several different 'parsers'. Here are a few different examples of what a par 阅读全文