jotai-devtools
jotai-devtools copied to clipboard
Update docs for conditional CSS import
I tried it like this first but it was complaining that an import has to be a top-level declaration:
if (process.env.NODE_ENV === 'development') {
import('jotai-devtools/styles.css')
}
I also tried it with next/dynamic
but no luck there.