Most of the problems that you encounter when building user interface components are relatively simple. Some state management, some DOM manipulation, some side effect handling. Well-established libraries or frameworks come with tools or abstractions t...

Markdown supported · ⌘↵ to post
gadi tzkhori yup, that looks like a similar problem! Didn't want to deal with intersection observer directly though, so I used a hook for that.
Generally, found a lot of help from this library from Adobe, I really liked the idea.
gadi tzkhori
Wow such a creative solution! I had a similar issue but a bit different I think, Tag components overflowing parent container. Bailed out with intersectionObserver. Please revise my package and tell me what you think react-truncate-jsx