Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6287

how can i refactor this code snippet from a class to functional component react?

$
0
0

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;

Viewing all articles
Browse latest Browse all 6287

Trending Articles