Closed foodaka closed 8 years ago
i dont know why but it doesnt show my return
<div>
<ReactSlider defaultValue={50} />
blahahh
</div>
@foodaka For now react slider is a non-es6 module, so you should use CommonJS require
call or import this with *
like this:
import React from 'react';
import ReactDOM from 'react-dom';
import * as ReactSlider from 'react-slider';
const DepthMeterInput = React.createClass({
render() {
<div>
<ReactSlider defaultValue={50} />
blahahh
</div>
}
})
export default DepthMeterInput;
@foodaka it seems that it doesn't work even with your workaround?
@foodaka @istrel this issue is still present, workaround doesn't word, should be reopened!
@VanDavv DId you try to use CommonJS require? It should work with webpack:
import React from 'react';
import ReactDOM from 'react-dom';
const ReactSlider = require('react-slider');
const DepthMeterInput = React.createClass({
render() {
<div>
<ReactSlider defaultValue={50} />
blahahh
</div>
}
})
export default DepthMeterInput;
Yes, and I still didn't manage to see the slider. Sorry, but i ended up using rc-slider
im unable to see the slider too
The slider is hidden by default. The divs are there with the right classes, but without CSS rules they are empty. Hopefully it's just a matter of adding the CSS you want.
Is there something im doing wrong? the component wont render
import React from 'react'; import ReactDOM from 'react-dom'; import ReactSlider from 'react-slider';
const DepthMeterInput = React.createClass({
render() { return (
} })
export default DepthMeterInput