CountryName component
We now set countryCodes
in all components that use it, but it would be more helpful to have a simple component <CountryName code3={ 'MEX' } />
that uses codes from Redux.
Something like:
const countryCode = (code3: string, countryCodes) => ( { countryCodes && countryCodes[code3] || null } );
const CountryCode = connect(mapStateToProps)(countryCode);
export { CountryCode };
Edited by Matija Obreza