Comment

Comment by adregan

You can use the fat arrow syntax to implicitly bind a function to this:

    handleChange = e => this.setState({ value: e.currentTarget.value })
parent adregan 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton