problem description
I"d like to ask you why the react component defines defaultProps,displayName,. If it"s not defined, what"s wrong with it?
the environmental background of the problems and what methods you have tried
tried it and found that there would be no problem
related codes
/ / Please paste the code text below (do not replace the code with pictures)
Component.displayName = "CreateUser";
Component.defaultProps = {
className: "createUser",
};
what result do you expect? What is the error message actually seen?
I hope you can help answer