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
@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' +
@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 / 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 / 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?

Session and Cookies

Submit Form Data with Templating

Encrypt To Decrypt

@anmolsukki
anmolsukki / README.MD
Last active February 14, 2021 06:48
[Method Post] Data Post in HTML Form

Post method Html Form

Microservices

Communication strategies

Sync:- Services communicate with each other using direct requests

Async:- Services communicate with each other using events

What is monolith contains

@anmolsukki
anmolsukki / javascript.md
Created September 20, 2020 08:17
[ Javascript ]

Shorten Function

shorten = (text) => {
  return text.substr(0, 50) + "..."
}
{this.shorten(description)}