skip to Main Content

This comparison appears to be unintentional because the types '{ loading: Boolean; }' and 'boolean' have no overlap – Reactjs

I am trying to set a loading state for my application with Typescript. const [loading,loadingupdate] = useState<Boolean>(false) return ( { loading === true ? <></> : <> <div className={` ${skin} bigcontainer`}> <div className="main-consign"> <h1 className="labelauth">{label}</h1> <Meat label={label} model={model} passworderror={passworderror} emailerror={emailerror}…

VIEW QUESTION
Back To Top
Search