So I'm currently playing around with web development as a project, and I've been looking at React recently. My current issue is that I'm having trouble distinguishing between front and back end seperation.
From my understanding, the front end is the UI that the client interacts with, and the back end is the server itself.
My current goal is to develop a quick note-taking application. To do this, I currently have two different approaches floating in my head.
In the first approach, I'd have only a single directory which stores the project. The first approach is to use React to generate a UI, and then have a component in the UI call a function to write the data into a text file, and store that file somewhere in the front end directory. With this approach, it doesn't really seem like a back-end is necessary, as the front end is handling all of it?
In the second approach, where things are seperated into 2 different directories (one for the front and one for the back), I'd have the front end communicate with the back end, and have the back end write the data into a database somewhere.
Additionally, is it considered bad practice to have the front end handle stuff like writing into files?