2.3.2 • Published 6 months ago
react-hook-use-cta v2.3.2
react-hook-use-cta: useCTA (use Call To Action)
Read full document for react-hook-use-cta
on documentation website
Install
npm i react-hook-use-cta
yarn add react-hook-use-cta
deno add jsr:@rafde/react-hook-use-cta
useCTA
import { useCTA, } from 'react-hook-use-cta';
const [
history,
dispatch
] = useCTA({
initial: {
value: 0,
},
});
createCTA
import { createCTA, } from 'react-hook-use-cta';
const [
history,
dispatch
] = createCTA({
initial: {
value: 0,
},
});
createCTAContext
import { createCTAContext, } from 'react-hook-use-cta';
const context = createCTAContext({
initial: {
value: 0,
},
});
export const CTAProvider = context.CTAProvider;
export const useCTAHistoryContext = context.useCTAHistoryContext;
export const useCTADispatchContext = context.useCTADispatchContext;
createCTASelector
import { createCTASelector, } from 'react-hook-use-cta';
export const useCTASelector = createCTASelector({
initial: {
value: 0,
},
});
2.0.0-pre.1
7 months ago
2.3.0
6 months ago
2.2.1
6 months ago
2.0.3
6 months ago
2.2.0
6 months ago
2.1.1
6 months ago
2.0.2
6 months ago
2.0.0-pre.4
6 months ago
2.3.2
6 months ago
2.0.0-pre.3
7 months ago
2.3.1
6 months ago
2.0.4
6 months ago
2.0.0-pre.2
7 months ago
2.0.1
6 months ago
2.0.0
6 months ago
1.1.0
1 year ago
1.0.0
1 year ago
0.0.1-10
1 year ago
0.0.1-12
1 year ago
0.0.1-9
1 year ago
0.0.1-13
1 year ago
0.0.1-8
1 year ago
0.0.1-3
1 year ago
0.0.1-7
1 year ago
0.0.1-5
1 year ago
0.0.1-2
1 year ago