I'm wondering what is better approach?
For example if I have some icons that are used in components.
assets folder approach ( located in root/src/assets/....)
import ListItemIcon from '@assets/ListItemIcon'
const ListItem = (props) => {
return <div><ListItemIcon/>{props.title}</div>
}
or public folder approach ( located in root/public/....)
import Image from 'next/image'
const ListItem = (props) => {
return <div><Image src='/ListItemIcon.png'/>{props.title}</div>
}
What are advantages / disadvantages in each approach while using nextjs framework? Is it different than working with pure react?
I don't have a clue what differences are there. I will be grateful for explanation.