Created
December 5, 2018 05:04
-
-
Save klogic/c63c14ff8bc05e78725b6f00942fea2b to your computer and use it in GitHub Desktop.
This is part of firebase-auth article. follow me on medium: https://medium.com/@klogic/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
export default class ShowProfile extends Component{ | |
constructor(props){ | |
super(props); | |
this.state = { | |
...props | |
} | |
console.log('state', this.state) | |
} | |
render(){ | |
return ( | |
<div id="showProfile"> | |
<h2>User Profile</h2> | |
<h3>Email :{this.state.email} </h3> | |
</div> | |
) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment