RE

React

@clerk/react

Clerk React library

Authentication
clerk
react
auth
authentication
passwordless
session
jwt
@clerk/react
javascript
npm
Stars
1.8k
Weekly
2.2M
Open issues
132
Bundle
~25 kB

Installation

npm install @clerk/react

Code example

import { signIn } from "@clerk/react";

export function Example() {
  return (
    <button type="button" onClick={() => signIn()}>
      Continue with React
    </button>
  );
}

Pros & cons

Pros

  • Actively maintained by Clerk
  • 2.2M weekly downloads. Battle tested
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 132 open issues on GitHub

FAQs

Alternatives & similar libraries