Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

157
Views
findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. React error

At the time I want to create a card or list in the console, it gives me the following message:

findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Transition which is inside StrictMode. Instead, add a ref directly to the element you want to reference. 

Reading the documentation I did not find a possible solution.

My code:

const AddCardorListText = ({type, setOpen, listId}) => {

    const classes = useStyle();
    const [title, setTitle] = useState("");
    const {addCard, addList} = useContext(contextAPI)

    const handelAddCardorList = (e) => {
        e.preventDefault()
        if(type === 'card'){
            addCard(title, listId)
        } else {
            addList(title)
        }
        setTitle('')
        setOpen(false)
    }
    return (
        <>
        <Paper className={classes.card}>
            <InputBase 
                onBlur={() => setOpen(false)}
                multiline
                placeholder={
                    type === 'card' ?
                    'Enter a title for this card...' :
                    'Enter list title...'
                }
                value={title} 
                onChange={e => setTitle(e.target.value)}
                inputProps={{className: classes.input}}
            />
        </Paper>
        <div className={classes.confirm}>
            <div className={classes.options}>
                <Button className={classes.btnConfirm} onClick={handelAddCardorList}>
                    {
                        type === 'card' ?
                        'Add card' :
                        'Add List'
                    }
                </Button>
                <IconButton onClick={() => setOpen(false)}>
                    <ClearIcon/>
                </IconButton>
            </div>
            <IconButton>
                <MoreHoriz/>
            </IconButton>
        </div>
        </>
    )
}
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!