-
-
Notifications
You must be signed in to change notification settings - Fork 489
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
problem in my code #2
Comments
there's a small issue on my code the countrypicker is not working after selecting a country and i've check the whole code i'm not missing anything |
share the code here so we can take a look at it. |
import React, { useState, useEffect } from 'react'; import { fetchCountries } from '../../api'; import styles from './CountryPicker.module.css'; const CountryPicker = ({ handleCountryChange }) => {
}; export default CountryPicker; |
import React from 'react'; import styles from './Cards.module.css'; const Cards = ({ data : { confirmed, recovered, deaths, lastUpdate } }) => {
return( <Grid item component={Card} xs={12} md={3} className={cx(styles.card, styles.infected)}> Infected Case <CountUp start={ 0} end={confirmed.value} duration={2.5} separator="," /> {new Date(lastUpdate).toDateString()} Number of AcTive case of Covid-19
}; export default Cards; |
import React, { useState, useEffect } from 'react'; const Chart = ({ data: {confirmed, deaths, recovered }, country }) => {
} export default Chart; |
What about App.js and your console log error please? |
Good
The text was updated successfully, but these errors were encountered: