How to add react-flexbox-grid with isomorphic-style-loader

239 Views Asked by At

Any solution in solving this problem here using isomorphic-style-loader? kriasoft/react-starter-kit

Using the react-starter-kit, and the solutions they proposed here: roylee0704/react-flexbox-grid doesn't seem to fix the issue.

1

There are 1 best solutions below

0
Marcin On

First you need to import your flexgrid css like so:

import grid from 'react-flexgrid/lib/flexgrid.css';

. . .

Then at the end you need to add imported styles to styles loader like this:

export default withStyles(grid, s)(Component)

But instead of package you link i use this one: https://github.com/nkt/react-flexgrid Works for me.