private handleClick = event => {
const params = new URLSearchParams(window.location.search);
let Useridval = params.get('ID');
console.log(event.currentTarget.id);
this.setState({ count: this.state.count + 1 })
};
private handleClick = event => {
const params = new URLSearchParams(window.location.search);
let Useridval = params.get('ID');
console.log(event.currentTarget.id);
this.setState({ count: this.state.count + 1 })
};
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Rupesh KahaneRank #136 · 16.4K reputationPosted Jun 6, 2022, 2:24 AM EDT
https://contactmentor.com/react-increment-counter-hooks/