АБ
Size: a a a
АБ
АБ
АБ
V
АБ
V
O
ES
A
А
MS
// reducer
export const makeApi = (apiKey) => () => {
const api = new Api(apiKey)
return {
type: SET_PROP,
payload: { field: 'API', value: api },
}
}
// component
const dispatch = useDispatch()
dispatch(makeApi(apiKey))
dispatch(makeApi(apiKey)())
Т
// reducer
export const makeApi = (apiKey) => () => {
const api = new Api(apiKey)
return {
type: SET_PROP,
payload: { field: 'API', value: api },
}
}
// component
const dispatch = useDispatch()
dispatch(makeApi(apiKey))
dispatch(makeApi(apiKey)())
AE
// reducer
export const makeApi = (apiKey) => () => {
const api = new Api(apiKey)
return {
type: SET_PROP,
payload: { field: 'API', value: api },
}
}
// component
const dispatch = useDispatch()
dispatch(makeApi(apiKey))
dispatch(makeApi(apiKey)())
DS
EM
S🛸
DS
A
D