react-scan icon indicating copy to clipboard operation
react-scan copied to clipboard

Could we update the README for Remix project ?

Open theocerutti opened this issue 1 year ago • 3 comments

Could we update the README for Remix project ?

I tried to install it on my remix project but it doesn't work,

I installed the npm package and put it in the entry.client.tsx, I also tried the script tag

theocerutti avatar Nov 22 '24 09:11 theocerutti

We need this as well please

damir-sh avatar Nov 22 '24 09:11 damir-sh

@theocerutti and @kryptowiz try to Install via npm and then update your root.tsx file with the following. Tried this approach after seeing the ticket here https://github.com/aidenybai/react-scan/issues/30.

  useEffect(() => {
    if (typeof document === 'undefined') return;

    import('react-scan').then(({ scan }) => {
      scan({
        includeChildren: true,
        log: true,
        report: true,
      });
    });
  }, []);

Great work @aidenybai and team 💯 🙇

visormatt avatar Nov 23 '24 04:11 visormatt

Yep working great

theocerutti avatar Dec 16 '24 13:12 theocerutti