Kit / convertkit-react

React-based library to easily plug ConvertKit forms to your React applications
46 stars 5 forks source link

Doesn't seem to render in Gatsby and errors in CodeSandbox #1

Closed spences10 closed 4 years ago

spences10 commented 4 years ago

Hi, thanks for this.

I tried this out this morning and it wouldn't render in my Gatsby project so I tried in a CodeSandbox and that gave a reference error "React is not defined"

I have imported the lib and used the example from the README, it seems that earlier versions work 0.0.1-0.0.3 but nothing more recent.

Reproduction here: https://codesandbox.io/s/strange-rubin-q8246?file=/src/App.js

Thanks

josephrexme commented 4 years ago

Hi @spences10 this should be fixed in version 1.0.6 that was just pushed. I'm sorry you had to deal with the inconvenience. I updated the codesandbox to use that version https://codesandbox.io/s/twilight-cookies-ihryz?file=/src/App.js

spences10 commented 4 years ago

Yay! Can confirm working in Gatsby, thanks 🙏

I close, now.