---
title: "Comment by gadi tzkhori on \"Using Generators in React Components\" | Hashnode"
description: "Wow such a creative solution! I had a similar issue but a bit different I think, Tag components overflowing parent container. Bailed out with intersectionObserv"
url: "https://hashnode.com/posts/using-generators-in-react-components/611d390aa285e422d5a12e25/comment/6159e801e2f1936f70b284e4"
---

[Discussion](https://hashnode.com/posts/using-generators-in-react-components/611d390aa285e422d5a12e25)

Comment [Using Generators in React Components](https://hashnode.com/posts/using-generators-in-react-components/611d390aa285e422d5a12e25)

[gadi tzkhori](https://hashnode.com/@gadi)

[Oct 3, 2021](https://hashnode.com/posts/using-generators-in-react-components/611d390aa285e422d5a12e25/comment/6159e801e2f1936f70b284e4)

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](https://github.com/gadi246/react-truncate-jsx)

[Tomasz Gil](https://hashnode.com/@tomaszgil)

[Oct 4, 2021](https://hashnode.com/posts/using-generators-in-react-components/611d390aa285e422d5a12e25/comment/6159e801e2f1936f70b284e4#reply-615aa3bfe2f1936f70b29171)

[gadi tzkhori](https://hashnode.com/@gadi) 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](https://github.com/adobe/react-spectrum/blob/main/packages/%40react-spectrum/breadcrumbs/src/Breadcrumbs.tsx), I really liked the idea.
