Skip to content

Instantly share code, notes, and snippets.

@klogic
Created December 5, 2018 05:04
Show Gist options
  • Save klogic/c63c14ff8bc05e78725b6f00942fea2b to your computer and use it in GitHub Desktop.
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/
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