Skip to content

Instantly share code, notes, and snippets.

View BenGedi's full-sized avatar
👨‍💻

Ben BenGedi

👨‍💻
View GitHub Profile
@elijahmanor
elijahmanor / index-0-non-debounced.js
Last active December 20, 2022 21:14
React Debouncing Events
import React, { Component } from "react";
import { render } from "react-dom";
import "./index.css";
class Widget extends Component {
state = { text: "" };
handleChange = (e) => {
this.setState({ text: e.target.value });
};
render() {