react-css-modules Questions
3
I'm using a (now older) version of react-boilerplate which came with CSS Modules. What's nice about them is that you can create variables and import them in other CSS files.
Here's my colors.css f...
Leaseholder asked 21/4, 2017 at 0:58
2
I'm using webpack and React with react-css-modules and scss files. When i try and build it gives me an error on every file that imports scss files -
ERROR in ./app/components/Buttons/Button.scss
...
Woodsia asked 15/6, 2016 at 9:54
1
Solved
I have 2 same components, which are a little different in styles, so I want to reuse common styles, but don't want to use global CSS for them, how can I achieve it?
import React from 'react';
imp...
Semifluid asked 13/2, 2017 at 10:0
5
Solved
I want to use the css-loader with the 'modules' option of webpack in a React application written in Typescript. This example was my starting point (they are using Babel, webpack and React).
webpac...
Mckinley asked 26/1, 2016 at 12:42
3
I'm using this simple React element on the left as my root element on the page in the right.
How do I fix the error shown?
Pothook asked 7/6, 2016 at 9:47
1
I've a _color.scss file which consists of 400 colors as variables. And I've like 20 components which needs this color variables in their styles.
I'm using SCSS + CSS Modules to construct my styles...
Fogel asked 23/11, 2016 at 11:32
2
Below is my Greeter.jsx file:
import React, {Component} from 'react';
import cssModules from 'react-css-modules';
import {Button} from 'react-bootstrap';
import styles from './Greeter.css';
const...
Inhume asked 1/3, 2016 at 11:32
3
EDIT: Meteor 1.3 release is out and a npm package is about to be released allowing a direct use of CSS modules without Webpack
I would like to use https://github.com/gajus/react-css-modules in M...
Boatswain asked 1/2, 2016 at 11:16
2
In a React/Webpack app with CSS modules I have a module .card in its own .scss file and another module named .stat which is a content to be shown in the .card.
What I need to achieve the followin...
Moneyed asked 21/3, 2016 at 12:30
2
Solved
I'm trying to setup a React project with react-css-modules, webpack and Hot Module Replacement. Everything is working like a charm but I can't get the CSS sourcemaps to work.
I followed this guide...
Moramorabito asked 23/12, 2015 at 11:37
© 2022 - 2025 — McMap. All rights reserved.