6

I just tried to create a project in clojurescript, that uses react-table. I import react-table like that

(:require [react-table :as rt :default ReactTable])

Obviously, this isn't imported CSS from react-table.

In javascript+React it would be import "react-table/react-table.css"

Question: What I should do in the clojurescript? For now, I just copied CSS from react-table to my css folder and link it in my index.html

1 Answer 1

4

As I using shadow-cljs to compile clojerescript, after a little googling I realized

  1. shadow-cljs does nothing about packing css and you should use something else
  2. one variant of 'something else' modular-styles
  3. for react-table I will end up with custom styles anyway, so the current "solution" is good enough.

P.S. I'll try to configure modular-styles in my project, and then I'll update this answer.

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

2 Comments

Did you succeed in configuring your project?
For now, I switched to the Material-UI which uses JSS for styling

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.