I have below class and I want to add propTypes to it, I tried different ways but no luck so far. Below is my code
import React, { useContext } from 'react'
import { appContext} from 'store/store';
const Drawer = ({isOpen, onCloseDrawer}) => {
let context = useContext(appContext)
let { user, userInfo} = context.state;
return <div>Some data</div>
}
Amit Patil
<3 Web, Mobile, Javascript
Anyone in the world?