2.3.2 • Published 11 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-ctayarn add react-hook-use-ctadeno add jsr:@rafde/react-hook-use-ctauseCTA
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
1 year ago
2.3.0
11 months ago
2.2.1
11 months ago
2.0.3
12 months ago
2.2.0
11 months ago
2.1.1
11 months ago
2.0.2
12 months ago
2.0.0-pre.4
12 months ago
2.3.2
11 months ago
2.0.0-pre.3
12 months ago
2.3.1
11 months ago
2.0.4
12 months ago
2.0.0-pre.2
12 months ago
2.0.1
12 months ago
2.0.0
12 months ago
1.1.0
1 year ago
1.0.0
1 year ago
0.0.1-10
2 years ago
0.0.1-12
1 year ago
0.0.1-9
2 years ago
0.0.1-13
1 year ago
0.0.1-8
2 years ago
0.0.1-3
2 years ago
0.0.1-7
2 years ago
0.0.1-5
2 years ago
0.0.1-2
2 years ago