Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ npm i react-turnstile
## Usage

```jsx
import Turnstile, { useTurnstile } from "react-turnstile";
import { Turnstile, useTurnstile } from "react-turnstile";

// ...

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-turnstile",
"version": "1.1.4",
"version": "1.1.5",
"description": "React library for Cloudflare's Turnstile CAPTCHA alternative",
"main": "dist/index.js",
"scripts": {
Expand Down
4 changes: 3 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const turnstileLoadPromise = new Promise((resolve, reject) => {
};
}

export default function Turnstile({
export function Turnstile({
id,
className,
style: customStyle,
Expand Down Expand Up @@ -205,6 +205,8 @@ export default function Turnstile({
return <div ref={ref} id={id} className={className} style={style} />;
}

export default Turnstile;

export interface TurnstileProps extends TurnstileCallbacks {
sitekey: string;
action?: string;
Expand Down