for example I have a public folder that stores all the css files, and a view folder that stores the ejs files. So when I link the css file in the ejs file, I do
<link rel=”stylesheet” href=”styles.css”>
or
<link rel=”stylesheet” href=”/styles.css”>
I don't understand how it gets the css file without me redirecting it, whereas in react I need to do e.g.
import "../public/styles.css"
which makes sense to me as I am starting from the current directory.