0.0.1-rc.2 • Published 2 years ago
tokra-use-next v0.0.1-rc.2
tokra-use-next
Exobase root hook to handle function running on Next.js api functions
Install
yarn add tokra-use-next
Usage
import { compose } from 'radash'
import type { Props } from 'tokra'
import { useNext } from 'tokra-use-next'
export const pingEndpoint = async (props: Props) => {
return {
message: 'pong'
}
}
export default compose(useNext(), pingEndpoint)
0.0.1-rc.2
2 years ago
0.0.1-rc.1
2 years ago