redux-authentication
2.0.0 • Public • Published redux-authentication
authentication component for redux
Install
Examples
import authentication from 'redux-authentication'
import {connect} from 'react-redux'
import React, { PropTypes } from 'react'
import {goToLogin} from 'your-actions'
@connect(state => ({
isAuthenticated: state.isAuthenticated
}), {
goToLogin,
})
@authentication
class App extends React.Component {
render() {
return (
<div>
App
</div>
)
}
}
export default App
Versions
Current Tags
- VersionDownloads (Last 7 Days)
- 2.0.0
1
Version History
Package Sidebar
Install
npm i redux-authentication
Weekly Downloads