Le0Developer / react-turnstile

A very simple React library for Cloudflare Turnstile.
https://turnstile-demo.pages.dev/
MIT License
106 stars 15 forks source link

SyntaxError: "missing ) after argument list" and "Unexpected token (" #16

Closed oekomar closed 1 year ago

oekomar commented 1 year ago

missing ) after argument list Screenshot 2023-07-31 at 10 26 01

Unexpected token ( Screenshot 2023-07-31 at 11 59 55

Le0Developer commented 1 year ago

The browser doesn't support ES2015 syntax (arrow functions specifically, supported everywhere since 2017), so you'll need to transpile the code.

Please do note that even if you do that, Turnstile itself also requires up-to-date browsers (which browsers from 2016 are not).