0

I am working on an Electric Clojure project and I need to import a CSS file to style my application. I add styles using dom/element and it works but the code looks so crowded. What is the best way to import a CSS file into ClojureScript and apply the styles to the dom and reagent components?

I tried to import a CSS file into a Clojurescript project with Hiccup link:

[:link {:href "material-ui-test/src/app/main.css", :rel "stylesheet"}]]

Finally, I want to import CSS files of React components into the project.

1 Answer 1

0

(dom/link (dom/props {:rel :stylesheet :href "/todo-list.css"})), there's a working example in the starter app here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.