Open riywo opened 3 years ago
@sastan @danielweck @eldain @Trugamr are y'all still the active maintainers and can this PR be merged? I'm encountering the same issue as @riywo did where twind is trying to set the className and gets a TypeError. Would love if this fix could be merged in.
Ah actually I retract this statement, I tried running the modified library and it did not fix my issue. Got the fix when I removed my imports of React components from a diff library unrelated to twind. So this likely does not need to be merged?
preact/compat changes
className
to a synonym ofclass
. Thus, we only need this setup when preact/compat isn't imported.This change fixes failure when preact/compat is used and the component is re-rendered. Close #20
Testings
Confirmed this worked with https://codesandbox.io/s/rrjq1?file=/public/index.js locally with workspace of this package.
If you want to see the working fix, I can update the code sandbox.