Use react slider in meteor 1.3


#1

Hey there,

I’m trying to add the “react-slider” for react package but I can’t access the component.

npm install --save react-slider

React Slider Package

import React, { ReactSlider ,Component, PropTypes } from 'react';

Unfortunately I can’t access it in my Render() method.

Anything else I have to consider?

Best regards


#2

Try this:
import ReactSlider from ‘react-slider’;
or
import * as ReactSlider from ‘react-slider’;

It’s a non-es6 module.


#3

Thanks! You helped me a lot :slight_smile: