Answer the question
In order to leave comments, you need to log in
How to solve eslint warning, react?
Good afternoon! Please tell me how to improve the method in react?
handleChange = (data) => {
if (data.file) {
data.fileContent = data.file;
data.filename = data.file && data.file.name;
}
data.fileContent
ESLint: Assignment to property of function parameter 'data'. (no-param-reassign)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question