how to useeffect here instead of components did mount i dont want to use classbase components
import React, { Component } from 'react';
import {
BookDetails,
Cards,
Charts,
CountryPicker,
Footer,
Header,
} from './components';
import style from './App.module.css';
import { fetchData } from './api';
export default class App extends Component {
async componentDidMount() {
const serverdata = await fetchData();
console.log(serverdata);
}
render() {
return (
{/* */}
);
}
}
Answers
Answered by
0
Explanation:
दिल पर आये हुए इल्जाम से पहचानते हैं,
लोग अब मुझे तेरे नाम से पहचानते हैं।
Similar questions