Skip to content

Instantly share code, notes, and snippets.

View hrc7505's full-sized avatar
๐Ÿ˜˜

Hardik Chaudhari hrc7505

๐Ÿ˜˜
  • Ahmedabad, India.
View GitHub Profile
// Example taken from the official ReactJs docs
import("./math").then(math => {
console.log(math.add(16, 26));
});
/*************************/
// Without lazy loading
import AnyComponent from './AnyComponent';
// With lazy loading
@hrc7505
hrc7505 / hover.html
Last active February 25, 2020 12:00
<nav>
<a>Home</a>
<a>Services</a>
<a>Locations</a>
<a>About Us</a>
<a>Contact</a>
</nav>
<h2 style="text-align:center">
Please hover on menu item to see the animation effect
</h2>
@import url('https://fonts.googleapis.com/css?family=Roboto&display=swap');
* {
box-sizing: border-box;
}
body {
margin: 0;
padding: 10px;
height: 100vh;
display: flex;
/**
* A utility to make developer life easy.
*/
class JavascriptUtility{
/**
* Returns `true` if both arguments passed are exactly same by
* type and value; Else returns false.
*/
private static isEqual(value: unknown, other: unknown): boolean{
// Get the value type