Last active
April 26, 2020 20:00
-
-
Save thefrugaldev/f6e4effc67086a888e45d228450060e0 to your computer and use it in GitHub Desktop.
Code snippets for the firebase-react-redux blog post: https://thefrugal.dev/blog/integrating-firebase-with-react-redux/
This file contains 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 Home = () => ( | |
<div className="jumbotron"> | |
<p>Welcome to our Firebase application!</p> | |
</div> | |
); | |
export default Home; |
This file contains 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 Private = () => { | |
return ( | |
<div> | |
<h2>This is a private component!</h2> | |
</div> | |
); | |
}; | |
export default Private; |
This file contains 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 Public = () => { | |
return ( | |
<div> | |
<h2>This is a public component!</h2> | |
</div> | |
); | |
}; | |
export default Public; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment