Best practices for importing raw text files into ClojureScript projects?

I ended up running with this piece of code in shadow-cljs:

(defmacro inline-resource [resource-path]
  (slurp resource-path))

What does clojure.java.io/resource do actually? There was an error when I was using it:

   4 | (def files
   5 |   [{:name "Component base", :content (inline-resource "snippets/component-base.tsx")}])
--------------------------------------------^-----------------------------------
IllegalArgumentException: Cannot open <nil> as a Reader.
	clojure.java.io/fn--10992 (io.clj:288)
	clojure.java.io/fn--10992 (io.clj:288)
	clojure.java.io/fn--10894/G--10870--10901 (io.clj:69)
	clojure.java.io/reader (io.clj:102)
	clojure.java.io/reader (io.clj:86)
	clojure.core/apply (core.clj:659)
	clojure.core/slurp (core.clj:6862)
	clojure.core/slurp (core.clj:6862)