I am new to React Native, I just want to check the console.log statement inside the return statement of a function but when I check the console the contents of console.log is printing infinitely in the console tab. can anyone explain why this is happening? Below is the code I am checking with, Thanks in advance.
import * as React from'react';
import { Text, View } from 'react-native';
function ExportFile() {
var RNFS = require('react-native-fs');
return (
<View>
<Text>
ExportFile
{
console.log("hello")
}
</Text>
</View>
);
}
export default ExportFile;
Below is my console output.
