Theo's Typesafe CultTTC
Theo's Typesafe Cult4y ago
20 replies
domi?

tRPC React - why the useState hook?

Hey. I've been following the docs for setting up tRPC for a React based project. I noted in the docs that they recommend wrapping the tRPC client into a
useState()
. Could someone explain why?
Was this page helpful?