Let's handle this case very quickly.
I'm going to first begin by delaying the comment.
And then going to try to write a file with FS dot right file, we're going to write a file to file path.
And inside there, we're going to right in right now an empty array as a string, we are writing in
an empty array because remember, we are currently storing that inside that file a list of cells as
a JSON string.
I can make sure that I encode this file as eight.
So the MTA specifically means we have no cells inside of here whatsoever.
This might not be the best default.
Instead, we might want to say that if a user is trying to create a file for the very first time or
create a notebook for the very first time, we might want to put in some really nice default values
inside there.
So maybe one cell that is a text cell that just explains what is going on with this application, that
they can better understand exactly how to create cells, how to edit them and so on.
But we will eventually come back and add in some more sensible defaults.
Right now, we'll just put an empty array inside their.
Well, then make sure they also send back whoever made this request, an empty array as well.
Again, that means that we have no cells to provide back to the browser.
Again, we will come back and improve these lines a little bit, but right now they're going to work
just fine.
OK, so that looks good or appears in a reasonable state, so we're going to take a pause right here,
come back to the next video and start to add in some code for our REACT application.