Simple fullstack app

NaN

Hi, this is my second blog post, and i will talk a little bit about react.

What is React?

React, link to the docs-> here <-, is a Javascript library for creating web and native user interfaces developed by Meta and opensourced around 2013.

It lets you create user interfaces out of components, individual pieces of code to mix togheter to create a page.

What are components?

Components are Javascript functions using a mix of Javascript and markup, called JSX(Javascript syntax extension), that will render to HTML (with Javascript making it reactive to changes).

Why React

Because of it's simplicity and the great ecosystem of npm packages florished around React, from ones that help navigate throught pages, like react-router, or help manage the state of the app like redux, to React Native,used to create native apps, and modern react frameworks like Nextjs or Gatsby.

The purpose of this small project

I created this project thinking how to navigate throught the different pages of the app without any additional npm package like react-router, that is how it started and later added a little bit bit of backend with expressjs and sqlite3 to make a simple crud app.

To solve the navigation side of the app simply set a route state anytime a link is clicked, and each route renders a page, something quite simple and basic

You can check the link to the project, css style is quite basic since wasn't the focus.

How would you have solved the problem of navigating without react-router or other packages?

Back