Skip to content

Instantly share code, notes, and snippets.

View mohitPassan's full-sized avatar
🐭

Mohit Passan mohitPassan

🐭
View GitHub Profile
@mohitPassan
mohitPassan / App.js
Created June 12, 2022 19:26
Custom hook to enable callback function for hooks
import { useStateWithCallback } from "./useStateWithCallback";
const App = () => {
const [bananas, setBananas] = useStateWithCallback(0);
const eatMore = () => {
setBananas(bananas + 1, (prevValue, newValue) => {
console.log(newValue);
});
};
Reported Date Total Dead and Missing Location Coordinates
May 06, 2021 1 26.235732937253, -98.581122284009
May 03, 2021 4 32.697073893550, -117.260845863600
May 03, 2021 1 32.794320188496, 12.731346358691
May 03, 2021 1 41.201093982770, 26.327208461914
May 02, 2021 1 36.943660300000, 7.202272700000
May 02, 2021 11 32.792595889523, 12.676219143408
April 29, 2021 2 35.843722221430, -5.353395668726
April 29, 2021 1 35.782608574135, -5.968789569092
April 29, 2021 1 32.551078209449, -116.928853426120
@mohitPassan
mohitPassan / README.md
Created April 25, 2021 18:13
UN population data