How do i make a trpc call outside of a functional component

How do can i implement a trpc call to upload an image in here instead https://medium.com/swlh/ckeditor5-with-custom-image-uploader-on-react-67b4496cb07d
Medium
CKEditor5 With Custom Image Uploader on React
Spent almost 2 days figuring out a proper way to use CKEditor5 image uploader. I’ve tried ckFinder, SimpleUploader, etc. but none of them…
1 Reply
cje
cje2y ago
use the vanilla client https://trpc.io/docs/client/setup
Set up a tRPC Client | tRPC
1. Install the tRPC Client library
Want results from more Discord servers?
Add your server