I am trying to use the date picker from react-toolbox.
Here is my webpack config:
{
test: /\.css$/,
loader: ExtractTextPlugin.extract('style-loader', 'css-loader!cssnext-loader')
},{
test: /\.scss$/,
loaders: ['style', 'css', 'sass']
}
I have .scss in the resolve
section:
resolve: {
extensions: ['', '.js', '.jsx', '.scss']
},
I have also wrapped my App component within ToolboxAPP
ReactDOM.render(
<ToolboxApp>
<Provider store={store}>
<App />
</Provider>
</ToolboxApp>
, document.getElementById('root'))
When I rendered the component, here is what it looks like:
You can see from the image that the component is not styled, and the corresponding css class names are undefined.
Does anybody know what i did wrong?