t
tRPC
t
tRPC
I want to call api (trpc) when i click a button, how can i do this?
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
N
Nick
•
3/30/23, 2:29 PM
You
’re breaking the
“rules of hooks
”
, they are for use in React components
N
Nick
•
3/30/23, 2:29 PM
For plain JS you probably want to vanilla
/standard trpc client
, not the react one