From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Unlock the full course today
Join today to access over 24,400 courses taught by industry experts.
Set documents with images: Set the date
From the course: Building Production-Ready React Apps: Setup to Deployment with Firebase
Set documents with images: Set the date
- [Instructor] So we finish with a little bit of front end. So now we have images, so that's great. So what I'd like to do is to display the date properly. We're going to add a few data, like the date on one side and also the user information on the right which is not yet available, but we are already preparing a spot just to display the username information. So once we are ready to display the user, the author name, it's going to be showing right here. So let's go back, and right here you have the date, so basically we're going to use the split method that we must use on a string object. So I'm going to wrap all of this within this operator, and then I'm going to use split. I'm going to separate every word into an array. And for this, if we look at this, so when you display, I no longer have access to it, but remember that we had first the day of the week, then you had the month, finally the date and the year. So…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Get started with Cloud Storage on the web3m 13s
-
(Locked)
Define an async function to send a file to storage5m 35s
-
(Locked)
Upload a file to the storage3m 17s
-
(Locked)
Download a file URL from storage6m 10s
-
(Locked)
Set documents with images: Update the UI5m 27s
-
(Locked)
Set documents with images: Set the date4m 10s
-
(Locked)
-
-
-
-
-