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 firebase from 'firebase/app'; | |
import 'firebase/firestore'; | |
import 'firebase/auth'; | |
// Replace this with your own config details | |
var config = { | |
apiKey: "AIzaSyBZ0iclqLM6B2ccDAZQqXO0TIhScB5K4EQ", | |
authDomain: "a-simple-cms.firebaseapp.com", | |
databaseURL: "https://a-simple-cms.firebaseio.com", | |
projectId: "a-simple-cms", |
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' | |
class ClassComponent extends Component { | |
render() { | |
return ( | |
<div> | |
<p> My First ClassComponent </p> | |
</div> | |
) | |
} |
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 from 'react' | |
const FunctionnalComponent = (Props) => { | |
return ( | |
<div className="container"> | |
<p> Our first Functionnal Component ! </p> | |
</div> | |
) | |
} | |
export default FunctionnalComponent |