😎
Working on private projects.
Highlights
Pinned Loading
-
react-todo
react-todo PublicThe very *** first *** react project. Showing use of react hooks and context to manage state between various components.
-
A simple trick to dynamically import...
A simple trick to dynamically import components in react. 1AsyncLoadFile.jsx
2```js
3import React, { Component } from 'react';
45export default function asyncComponent(importComponent) {
-
pwa-network-connection.md
pwa-network-connection.md 1```js
2(function () {
3'use strict';
45var headerElement = document.querySelector('header');
-
pwa-share.md
pwa-share.md 1```js
2(function () {
3'use strict';
4//Check if share API is supported or not
5if (navigator.share !== undefined) {
-
Jest-Enzyme notes.
Jest-Enzyme notes. 1Enzyme :- creates virtual DOM for testing.
2has better toolkit, like jquery selectors.
3- (shallow rendering) render component only one level deep, i.e it will render parent but will keep placeholder for children.
4- Manipulate values of state and props.
5 -
react-copy-clipboard ~ 1 kb
react-copy-clipboard ~ 1 kb 1```js
23import { useState, useRef, useEffect } from 'react'
4import copyToClipboard from 'copy-to-clipboard'
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.