Skip to content

Latest commit

 

History

History
19 lines (10 loc) · 1.35 KB

2019-05-04.md

File metadata and controls

19 lines (10 loc) · 1.35 KB

Dan recommend how to write hook

How to create and expose React Context providers and consumers

Since React Hooks have been released, function components can use state and side-effects. There are two hooks that are used for modern state management in React: useState and useReducer. This tutorial goes step by step through a useReducer example in React for getting you started with this React Hook for state management

Today we're talking about how to write the perfect unit test and how to ensure your tests stay readable, usable and maintainable

In the beginning, there were callbacks. A callback is nothing special but a function that is executed at some later time. Due to JavScript’s asynchronous nature, a callback is required in many places, where the results are not available immediately.