DEV Community

Cover image for React Hooks and Considering Different Ways to Store Data
Alex Morton
Alex Morton

Posted on • Edited on

React Hooks and Considering Different Ways to Store Data

This post was originally published on September 24, 2020 on my blog.

Happy Thursday! This morning was pretty relaxed, and then this afternoon, I'll be jumping more into Pure React and implementing all the fun Hooks learning!

The idea of Hooks is definitely becoming more and more clear to me; and not only that, but also the different types of hooks and their uses.

So far, I've been exposed to useState, useRef, and useReducer.

Still need to continue on through useReducer, and then up next will be useEffect.

Aside from that, I'll be working a bit more on So You Think You Can France. I'm drafting out a general UI for searching for the city guides. At the moment, I'm getting everything set up statically, and then I'll work on getting the information to render on the screen depending on what city the user enters into the input.

Something interesting I'm coming up against is trying to decide on how to store my data (there's a lot of it). At first, I was considering using Firebase Firestore, but then I wanted to explore building out my own database by hand.

So. For the moment, the data's going into a spreadsheet and will then be stored in a JS file/module in the app itself.

And then there's the fact that I just learned some new data structures. Lots to think about.

But I love this feeling/moment, when things are coming together from (seemingly) all different directions and then, with each step forward, it makes for lots of new learning and progress along the ol' coding journey!


P.S. Did you know I have a podcast with new episodes each Wednesday? Go listen right over here >>

The Ladies Code Collective Podcast cover art

Top comments (2)

Collapse
 
stereoplegic profile image
Mike Bybee • Edited

Just wait till your first custom hook dawns on you. It's a really cool feeling.

Also, useRef is much more useful than it seems at first glance (but get the other ones you mentioned down first).

Collapse
 
alexlsalt profile image
Alex Morton

Looking forward to it! At the moment, I'm having a bit of a hard time wrapping my head around useReducer, but I think it'll come in time. Thanks for the heads up about useRef.