Custom JSX namespace and unused variables
I'm using a custom JSX namespace for a custom JSX library. The code looks like this:

I've set the custom namespace in the settings under Missing React import with JSX like so:

This setting does help with the Missing React import error, but the h() is still marked as unused which is unusual. Is there a way to whitelist h() or anything else that I could do to make this error go away?
Please sign in to leave a comment.
You can suppress the warning by adding
before your const declaration
Is there a way to globally whitelist `h`, without patching every single module it's used in?
No, no way