Todd Elvers

Results 9 comments of Todd Elvers

Here's a trimmed down version of what I did: ``` const styles = useStyles(); ... return ( ) ``` The `useStyles` hook: ``` const useStyles = makeStyles(() => createStyles({ fileDropzone:...

Okay, I believe I'm done with my changes. Recent: - All files are now TypeScript, even the config files - Library also now requires all tests to pass before `git...

I've moved `react` and `react-dom` and `react-lottie-player` to peer-dependencies, reducing the bundle size. CJS bundle is less than 90 lines and ESM bundle is less than 60. That's my final...

@cawfree Any chance you could take a look at this? I can rebase if that helps.

Here's a quick proof-of-concept of how you _could_ implement this logic using a custom hook: ```javascript function useLastKeyPress(targetKey) { const [keyPressed, setKeyPressed] = React.useState(false); const reset = () => setKeyPressed(false);...

@cawfree You're right, I believe it falls upon the user of the library to customize the outlining behavior based on the browser(s) they are targeting. That being said I'll create...

I've updated the readme to include some context and a link to this issue in PR #18

I branched off of this repo and created `react-dark-mode-toggle-2` to solve this problem and merge an outstanding PR. If you have the bandwidth, please give it a try: https://github.com/todd-elvers/react-dark-mode-toggle-2

For those who want to use this library in TypeScript **now** do the following: - Create a `declaration.d.ts` file in your project - Paste the following into there: ```typescript declare...