Tag Archives: Helper

clear up your jsx with fromObject helper – React Dev Feed

clear up your jsx with fromObject helper You may need seen the code like: operate Profile() { const [res] = useQuery({ question: GetCurrentUser }) return ( <div> <h1 tw=”text-black font-bold text-3xl”>Profile</h1> <div> {res.fetching && <Spinner international />} {res.error && <p>error</p>} {res.information?.currentUser && ( <div> <Avatar title={res.information.currentUser.title} measurement=”l” /> <p>{res.information.currentUser.title}</p> <p>{res.information.currentUser.electronic mail}</p> <p>{res.information.currentUser.age}</p> </div> )} </div>…

Read More

Replace clsx, classnames or classcat with your own little helper – JavaScript Dev Feed

Replace clsx, classnames or classcat with your own little helper Disclaimer: I know I’m talking about minimal and well developed packages that a lot of people love. But if you ever took some time off programming and came back after couple months to struggle with package updates, you might be willing to reduce the amount…

Read More