#javascript
Read more stories on Hashnode
Articles with this tag
function ParentComponent() { const handleClick = () => { // logic } return ( <ChildComponent onClick={handleClick} /> ) } What...
Currently, I have 5 projects in javascript and I saw a problem with code sharing. A user-facing project written in Nextjs. An admin project write in...
React Redux for state management Redux-saga for asynchonous tasks Axios for api call Nextjs for server side render Scss Cypress for integration...
Problem: We have a javascript code run when hover a element. How we debug this code in browser? Solution: Use debugger; in block code we want to...
Problem: We have a array of numbers. Calculate unique numbers in array Solution 1: const array = [1, 2, 1, 3, 2, 4, 5, 5] const uniqueNumberChecker =...
Problem: sort array of objects by a property Example: const array = [ { id: 1, name: "tung" }, { id: 3, name: "nguyen" }, { id: 2, name: "thanh"...