Saurabh Kumar

#javascript

JavaScript, Node.js, TypeScript, JS runtimes

TIL notes

  • Feb 10, 2026

    Hono based on web standards is a great option for js runtimes esp. if you plan to deploy your code to cloudflare workers, bun or deno. You get faster startup time and cross-platform compatibility.

  • Dec 22, 2025

    npx -y npm-check-updates tells you the latest versions of your package.json, ignoring pinned versions.

  • Nov 8, 2023

    React’s setState is asynchronous: read this.state right after calling it and you may get the old value. To act on the new state, pass a callback, or use componentDidUpdate (which also fires on prop changes). From React gotchas.

    this.setState({ name: 'Jon' }, () => {
      // runs after the state update and re-render
    });