Thanks so much! ❤ This video was incredibly helpful and made mastering the 'READ MORE' button in React.js easy to understand. Great step-by-step tutorial!
hi. I'm implementing your logic with the map method because I have a list of testimonials that I need to toggle read more and read less for. But it's not working. When I click on read more, all the testimonial text is getting expanded all at once. and clicking on read less, all testimonials text is then getting truncated. Please help.
I am using typescript console.log(ref.current.scrollHeight) Error: Property 'scrollHeight' does not exist on type 'never'. Can anyone help, I am getting an error for scrollHeight and clientHeight?
I am using typescript, console.log(ref.current.scrollHeight), >>>Error: Property 'scrollHeight' does not exist on type 'never'. Can anyone help, I am getting an error for scrollHeight and clientHeight?
There are people who knows how to teach, you are one of them. Thank you so much for this lesson!!!
Thanks so much! ❤ This video was incredibly helpful and made mastering the 'READ MORE' button in React.js easy to understand. Great step-by-step tutorial!
Best video in youtube on Read More or Read Less feature.
dude you're a HERO
How would you animate the transition on that?
What if there are so many paragraph come from api side and I want for all para see more see less button and open there own paragraph, how to do?
Bro, which font you are using in vs code?
Operator mono
Will you make video's on CI/CD pipeline
amazing sir 🔥
hi. I'm implementing your logic with the map method because I have a list of testimonials that I need to toggle read more and read less for. But it's not working. When I click on read more, all the testimonial text is getting expanded all at once. and clicking on read less, all testimonials text is then getting truncated. Please help.
Hi, What had you done to solve this problem?
I think you need to use index to know which button you will click ....etc
@growwithdesign I am facing the same issue is there any solution for it please help
Please add some more videos to nodejs tips and tricks i am fan of that playlist
Like add how to upload resumable chunked large file using nodejs
Mafia can u please make a rest api for production using docker.
What if there are 2 lines but we resize and make the window smaller it will become 3 lines. Will it show read more button then?
then you can use something like the number of character you want to display, or maybe media query
Amazing explanation
you saved me
Waiting for production ready kubernetes series
sir jab viewers ka reply hi nhi dena hota toh comments on kiyon rakhte ho
I am using typescript
console.log(ref.current.scrollHeight)
Error:
Property 'scrollHeight' does not exist on type 'never'.
Can anyone help, I am getting an error for scrollHeight and clientHeight?
I am using typescript, console.log(ref.current.scrollHeight), >>>Error: Property 'scrollHeight' does not exist on type 'never'.
Can anyone help, I am getting an error for scrollHeight and clientHeight?
Replace:
const ref = useRef(null);
With this:
const ref = useRef(null);