resize-observer-hook
resize-observer-hook copied to clipboard
migration: Migrate to Typescript.
Fixes #20.
Renamed all files with extension .tsx
.
Testing plan: Everything works fine after this changes.
Hook should end in .ts
since they are not returning any jsx
. Also, types are needed first, not just changing the file extension.
@boxdox Almost all functions are returning the jsx
element, can you please check it again?
Yes, I am working on adding types.
i am talking about src/index.js
, that's a plain hook, no jsx returned. also, i am curious what does this project offer, when there are alternatives available?
@boxdox Currently the library is bare-bone, and I have few ideas that can be implemented in the library -->
- Measure dimensions of lazy-loaded elements.
- Add testing support to the library.
If you have any ideas that can make this library stand out from others, feel free to post them in this issue. Thanks 🙂