Issue
i have this code inside a class, how could i keep the idea of it but updating to use in a function component? I'm trying to change but I can't keep the current proposal
validate = value => {
const {
formApi: { getValue },
name,
} = this.props;
Solution
const component = (props) => {
const validate = value => {
const {
formApi: { getValue },
name,
} = props
}
}
Answered By - Tera
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.