I recently decided to polish up a project from a couple of months ago so that I could get it deployed. When I originally set up the API, I had future users in mind and configured Devise to handle authentication. I didn’t flesh that out on the frontend though, as it wasn’t a priority at the time. So I’ve been working on getting that set up, and I ran into a slight issue.
At least a few times in my life, I have been tripped up by the situation I’m about to describe, so I’m going to take this opportunity to write out what I’ve learned this time in hopes that perhaps I will save someone else a few minutes of their life (even if that person is me in three months) (I really think I have the hang of it this time).
Last week, I took a close look at Create React App and all of the things that you get out of the box when you use create-react-app
to bootstrap a React application. But, as I mentioned in my previous post, Create React App is not the only toolchain available to you when you go to create a new React application. While the React Documentation recommends Create React App for getting started with React and creating single-page applications, it recommends Next.js for creating and building static and server-rendered websites with Node.js.