react public folder code example
Example 1: express public folder
app.use(express.static('public'))
app.use(express.static('files'))
Example 2: react src images from public folder
<img src={process.env.PUBLIC_URL + '/yourPathHere.jpg'} />
app.use(express.static('public'))
app.use(express.static('files'))
<img src={process.env.PUBLIC_URL + '/yourPathHere.jpg'} />