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

console.log inside component

$
0
0

Generally, this is how Formik's tag is used:

<ErrorMessage                        name="email"                        render={(msg) => (<Text style={styles.errorText}>                            {msg}</Text>                        )}                      />

Is there any way to console.log and see the error message from inside it? I tried making a separate function which does the printing but calling it instead of doesn't work. Do I have an alternative?


Viewing all articles
Browse latest Browse all 6212

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>