Sign Up

Sign In

Forget Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

You must login to ask question.

Discy Latest Questions

  • 0

In the official docs of React it mentions – If you’re familiar with React class lifecycle methods, you can think of useEffect Hook as componentDidMount, componentDidUpdate, and componentWillUnmount combined. My question is – how can we use the componentWillMount() lifecyle method in a hook?

  • 0

I have an object contains multiple common key-value props, that I want to pass on to some jsx. Something like this: const commonProps = {myProp1: 'prop1',myProp2: 'prop2'}; <MyJsx commonProps /> I want this to function as passing individual props: <MyJsx myProp1={commonProps.myProp1} myProp2={commonProps.myProp2}/> Is this possible?

  • 0

I’m working on a project with Typescript, React and Redux (all running in Electron), and I’ve run into a problem when I’m including one class based component in another and trying to pass parameters between them. Loosely speaking, I’ve got ...