react icon indicating copy to clipboard operation
react copied to clipboard

[Investigation] Remove `rooks` dependency

Open jamesrweb opened this issue 3 years ago • 0 comments

Currently we use rooks to expose to us an isomorphic use effect but it seems that almost nobody uses SSR with this library and thus, we could save space in the downloadable bundle by moving to a purely client side implementation.

I have some concerns with doing this such as integrations with libraries such as remix, gatsby and next but these need to be tested as part of the outcome, if any, of this issue.

Furthermore, as part of this issue, we should run some benchmarks to see how much, if any, impact is visible in the end bundle and on core use cases.

jamesrweb avatar Jul 25 '22 08:07 jamesrweb