I'm pretty new to React etc.
I was looking at https://github.com/primefaces/primereac ... ateDemo.js
Code:
Code: Select all
countryBodyTemplate(rowData) {
return (
<>
<img alt={rowData.country.code} src="showcase/demo/images/flag_placeholder.png" className={`flag flag-${rowData.country.code}`} width="30" />
<span className="image-text">{rowData.country.name}</span>
</>
);
}
I downloaded flag_placeholder.png from Github, however nothing is being displayed. It's pretty obvious: the transparent PNG is found and the CSS classes flag and flag-us etc. arent't found.
Where do I find these styles/classes? What do I need to install/import into my file to get PrimeReact flags out of the box?
Thanks