Skip to content

Instantly share code, notes, and snippets.

View anmolsukki's full-sized avatar
🎯
Software Engineer | Web Developer

Anmol Kumar Singh anmolsukki

🎯
Software Engineer | Web Developer
View GitHub Profile

Submit Form Data with Templating

Session and Cookies

@anmolsukki
anmolsukki / README.MD
Created February 18, 2021 21:07
[React Js]

React Hooks

What is useCallback Hook?

useCallback is hook that will return a memoized version of callback function that only changes if one of the dependencies has changed.

Why use useCallbak hook?

@anmolsukki
anmolsukki / README.md
Last active March 31, 2022 09:26
React Native Notes

What is react native?

- A Collection of "Special React Component"
- Components compile to ntive widges
- Native platform APIs exposed to javascript
- Connects Javascript and Native platform code

Styling

@anmolsukki
anmolsukki / index.js
Created January 3, 2022 06:04
[React Logics] Remove All Cookies form website
const cookiesName = Cookies.get();
const cookiesKey = (cookiesName && Object.keys(cookiesName)) || [];
if (Array.isArray(cookiesKey)) {
cookiesKey.forEach((data) => {
Cookies.remove(data);
});
}
@anmolsukki
anmolsukki / WhatsAppShare.js
Last active March 31, 2022 09:25
Share Multiline Message on WhatsApp
import React from 'react';
const WhatsAppShare = () => {
const whatsappMessage =
'Dear Customer,' +
'\r\n\r\n' +
'Thanks for shopping at Gyftr. Your Gift Code details' +
'\r\n\r\n' +
'Brand: Amazon' +
'\r\n' +