Skip to content

Instantly share code, notes, and snippets.

Avatar

Romain Rouiller RouillerRomain

View GitHub Profile
View FbConfig.js
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",
View ClassComponent.js
import React, { Component } from 'react'
class ClassComponent extends Component {
render() {
return (
<div>
<p> My First ClassComponent </p>
</div>
)
}
View FunctionnalComponent.js
import React from 'react'
const FunctionnalComponent = (Props) => {
return (
<div className="container">
<p> Our first Functionnal Component ! </p>
</div>
)
}
export default FunctionnalComponent
You can’t perform that action at this time.