Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React ,{ Component } from 'react';
- import { connect } from 'react-redux';
- class Login extends Component {
- render() {
- return (
- <div>
- <p>Login Page {this.props.popupProps}</p>
- <button>Go to Register</button>
- <button>Go to Dashbord</button>
- </div>
- )
- }
- }
- const reduxState = (state) => {
- return {
- popupProps: state.test
- }
- };
- export default connect(reduxState, null)(Login);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement