Computer Science, asked by HAkeRworld, 2 months ago

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 XxkingoftheQueenXx
0

Explanation:

दिल पर आये हुए इल्जाम से पहचानते हैं,

लोग अब मुझे तेरे नाम से पहचानते हैं।

Similar questions