React Package API

Article author
Memberstack Team

React Memberstack is a wrapper for the @memberstack/dom package that makes it easy to add Memberstack to a React app.

View React Package Documentation →

-------------------

The package provides a MemberstackProvider component that receives a config prop with the memberstack initialization object and custom hooks that give access to Memberstack related data and methods. The package also provides UI components and logic wrapper components to conditionally render content based on the member’s logged in state and plans/permissions.

-------------------

Keywords: React Memberstack, @memberstack/dom, MemberstackProvider, config prop, custom hooks (useMemberstack, useAuth, useCheckout, useCustomerPortal, useMemberstackModal), UI components (SignUpModal, SignInModal, ProfileModal), Logic wrapper components (MemberstackProtected, LoggedIn), plans, permissions, modals

Was this article helpful?

Comments

2 comments

  • Comment author
    Ali Yar Khan

    Can this work in React Native ?

    1
  • Comment author
    Duncan Hamra

    Hey Ali Yar Khan, we have not tested any Memberstack apps in React Native. We've been focused on web. 

    0

Please sign in to leave a comment.