I am trying to use react-ion-slider on my react website. But it is not showing up.
import IonRangeSlider from 'react-ion-slider';
import React, { Component, ReactNode } from 'react';
function Category() {
return (
<div className="category-page main_div">
<IonRangeSlider type={'double'} min={0} max={150} from={0} to={150} step={1} />
</div>
);
}
export default Category;
Output:
But I want like this
correcting my own answer given above by adding script using useEffect lifecycle. here is example:
If still not working then add these js and css in your index.js file (located at root folder).