EYHello It is amazing smart contract My question is as the follow Why do we use this function ? uint(keccak256(abi.encodePacked(block.difficulty,block.timestamp,participants.length))); } Is there other alternative for modulo?Comment·Article·Mar 9, 2022·Building a Mini-Lottery System on Ethereum With Solidity
EYThank you for detailed explanation. I hope you write more in react issues. More compact more fast ! Tapas AdhikaryReply·Article·Feb 18, 2022·ReactJS useState Hook - lazy initialization and previous state
EYI dont understand that difference const incrBy3 = () => { setCounter((prev) => prev + 3); }; const incrBy3 = () => { setCounter(counter+ 3); };Comment·Article·Feb 18, 2022·ReactJS useState Hook - lazy initialization and previous state