Gatsby is a React-based open-source framework for creating websites and apps. It is a static site generator that produces static HTML files that can be loaded onto a server. This process is significant as many websites will first go through modes such as query, database, and JavaScript code before they access the webpage. Gatsby makes sure everything is pre-configured before serving the webpage. Additionally, through Gatsby, a user can create rich, interactive, and immersive websites without programming or running the server-side languages.
Gatbsy is also a generator, meaning that it’s a tool that is run on a computer or local server, and generates content for the user itself. This content includes the final finished site containing HTML, CSS, and JavaScript files. Gatsby will yield all the necessary tools needed for our website to run.
import React from 'react'; require('./style.css'); import ReactDOM from 'react-dom'; import App from './app.js'; ReactDOM.render( <App />, document.getElementById('root') );