Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import React ,{ Component } from 'react';
  2. import { connect } from 'react-redux';
  3.  
  4. class Login extends Component {
  5. render() {
  6. return (
  7. <div>
  8. <p>Login Page {this.props.popupProps}</p>
  9. <button>Go to Register</button>
  10. <button>Go to Dashbord</button>
  11. </div>
  12. )
  13. }
  14. }
  15.  
  16. const reduxState = (state) => {
  17. return {
  18. popupProps: state.test
  19. }
  20. };
  21.  
  22. export default connect(reduxState, null)(Login);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement