- Fix something: #1234
- Fix “A” typo in doc: #5678
const initialState = { | |
isLoading: false, | |
data: null, | |
error: null, | |
}; | |
const reducer = (state = initialState, action) => { | |
switch (action.type) { | |
case "GET_DATA_REQUEST": | |
return { |
const GET_DATA_REQUEST = "GET_DATA_REQUEST"; | |
const GET_DATA_SUCCESS = "GET_DATA_SUCCESS"; | |
const GET_DATA_FAILURE = "GET_DATA_FAILURE"; | |
const getDataRequest = (data) => ({ | |
type: GET_DATA_REQUEST, | |
data, | |
}); | |
const getDataSuccess = (data) => ({ | |
type: GET_DATA_SUCCESS, |
{ | |
"printWidth": 80, | |
"tabWidth": 2, | |
"useTabs": false, | |
"semi": true, | |
"singleQuote": false, | |
"quoteProps": "as-needed", | |
"jsxSingleQuote": false, | |
"trailingComma": "es5", | |
"bracketSpacing": true, |
import { useState, useEffect, Dispatch, SetStateAction } from "react"; | |
interface UseStickyReturnType { | |
isSticky: boolean; | |
setIsSticky: Dispatch<SetStateAction<boolean>>; | |
} | |
/** | |
* @description Check sticky with offset | |
* @param offset | |
* @example |
#include <stdio.h> | |
#define SIZE 5 | |
void func(int *, int); | |
int main(void) | |
{ | |
int ary[SIZE] = {1, 7, 3, 9, 5}; | |
func(ary, SIZE); |
#include <stdio.h> | |
void func(int *w, int *x, int *y, int *z); | |
void main() | |
{ | |
int data[3] = {3, 70, 700}; | |
int a, sum, *pa, *pb, *pc; | |
a = 6; | |
pa = &a; | |
pb = &data[0]; | |
pc = data + 1; |
#include <stdio.h> | |
#define SIZE 5 | |
void func(int *, int); | |
int main(void) | |
{ | |
int ary[SIZE] = {1, 7, 3, 9, 5}; | |
func(ary, SIZE); |
Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.