how can i make a component async in react native code example
Example: async await class component react
async componentDidMount() {
// when react first renders then it called componentDidMount()
const response = await fetch('https://jsonplaceholder.typicode.com/users');
const json = await response.json();
console.log(json);
}