Skip to content

Category: Questions

Ion RangeSlider without jQuery

Is it possible to get a ion rangeslider without jQuery ? The script below cause problems on my website with a part of the menu dedicated to users. I tried to remove the jQuery by following the reference below, but failed. https://www.npmjs.com/package/vanilla-rangeslider Anyone kind enough to help me? Is ther…

Need Help Figuring Out State in React

I’m working on a basic Todo app. I’m storing the todo items in state as an array of objects. The object key is the todo item, the value is either true(done) or false(not done). When I click a button to check off an item, I want to change the value of the todo item as well as change the style

How to render SVG based off of a ternary operator

I’m trying to setup a ternary operation to either show a SVG inside of an a tag or not based off of whether a link is present or not. I’m using Sanity to pull the links from. <a href={project.link} …

converting jquery hide/fade/delay/animation to pure js

I am trying to remove the jquery dependency from my code and came across a few lines I have no idea how to replicate in js. I know I can use setTimeout() in place of delay, css transitions for the fading, and css for the hide… just not sure how to go about it and haven’t been able to figure