I need to use jquery in my webpart function, remote jquery lib added from cdn;
SPComponentLoader.loadCss('https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js');
and this is my simple line throws exception;
private postMessage(e): void {
$("#myDiv").show()
this is the error gulp tool throw;
[13:48:46] Error - typescript - src\webparts\contact\components\Contact.tsx(134,9): error TS2304: Cannot find name '$'.
[13:48:46] Error - 'typescript' sub task errored after 1.44 s
"TypeScript error(s) occurred."
Is there any external react package for jquery ? how can I use jquery in spfx webpart?