Read Data

2 components need to read data the Search component and the History List components

Our Search component looks like this :

const Search = () => {
  return <AutoComplete items={[]} />;
};

We want to connect it to the database at user_bookmarks/ path.

What our data looks like.

The code we get :

That's it !

Now for the list showing user_bookmarks sorted by user_bookmarks/created_on, we want to change

to a dynamic list of items :

That's it ! We now have an app that writes, reads and searches in Firebase !

You can check the full code here.

And a gif here :

Last updated