Home Manual Reference Source Test Repository
import {Logout} from 'react-cognito/src/Logout.jsx'
public class | source

Logout

Extends:

react~React.Component → Logout

Container for logout behaviour.

Example:

<Logout onLogout={handler}>
  <LogoutForm />
</Logout>

Member Summary

Public Members
public

onClick: *

Passed to child element as onClick prop.

Method Summary

Public Methods
public

render(): *

renders the child element, adding an onClick property

Public Members

public onClick: * source

Passed to child element as onClick prop. Signs the user out, and then dispatches the logout action If you want to take further actions (like reloading UI) then add an onLogout property to the Logout element

Public Methods

public render(): * source

renders the child element, adding an onClick property

Return:

*