Rethinking Asynchronous JavaScript Rethinking Asynchronous JavaScript

Thunks

Kyle Simpson
You Don't Know JS
Thunks are functions that already have everything they need to return a value. They do not require any parameters. Kyle explains how thunks typically manifest themselves as a function wrapper around some state or token value. Hey also demonstrates the difference between synchronous and asynchronous thunks.
Get Unlimited Access Now