Pinned Loading
-
react-app-tutorial
react-app-tutorial PublicForked from inkognitro/react-app-tutorial
WIP: A tutorial for a full react app framework with auth, i18n, form errors, http & api handling.
TypeScript
-
mui/material-ui
mui/material-ui PublicMaterial UI: Comprehensive React component library that implements Google's Material Design. Free forever.
-
Boilerplate code for SWR hook using ...
Boilerplate code for SWR hook using IntelliJ WebStorm Live Templates 1import axios from "axios";
23// define the fetcher once, export it and use it every where you use useSWR
4export const fetcher = (url: string) => axios.get(url).then(res => res.data)
5 -
Create a new React.FC using Live tem...
Create a new React.FC using Live templates for IntelliJ WebStorm 1import React, { FC } from "react";
23// $ComponentName$ is a variable which can be set to fileNameWithoutExtension()
45type $ComponentName$Props = {
-
Clean display of dates in the past
Clean display of dates in the past 1import DateDiff from "date-diff";
2export function getFormattedDateDifference(dateAdded: string) {
3const diff = new DateDiff(new Date(), new Date(dateAdded))
4if (diff.minutes() < 60) {
5if (Math.round(diff.minutes()) === 1) {
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.