A simple guide to using the Firebase Admin SDK with Python to import data from a csv file.
I’m a big fan of Firebase and have been using it to develop projects for a while, however I was struggling to find a simple way to import a large quantity of data into Firestore. The Realtime database has a nice import and export data functionality but currently no equivalent exists for Firestore, so I thought I’d use a Python script to achieve this.
Writing your first React hook. How to setup a project to write your first hook.
If you want to view the end result the repository is here.
Everyone is talking about Hooks at the moment it seems and this is great, getting the community involved in the development of React and it’s new features is definitely one of its strengths. Hooks are just in alpha at the present and Dan Abramov suggests a note of caution before launching into them, but they are shiny and new so who doesn’t want to have a play!
An exploration of using Fragments in React with state.
Fragments were highlighted in React 16.2 back in November 2017 https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html and there are plenty of examples out there showing simple usage:
This is useful as it saves the additional wrapping of children in extra elements such as a div or span.
It’s worth noting the syntax for a
Fragment can also be expressed explicitly, and whilst I’m all for the shortening of code I think I prefer the readability this provides instead, so…