What is gatsby.js?
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.
Important features of gatbsy
- Gatsby uses
to access data from anywhere or any document such as different databases, WordPress sites, etc.GraphQL an open-source data query and manipulation language for APIs and a runtime for fulfilling queries with existing data. - Gatsby uses React JS for
and CSS for styling of sites.templating refers to the client-side data binding method implemented with the JavaScript language. - Gatbsy also provides a plug-in architecture that reduces complexity through plug-ins that interact with JavaScript.
import React from 'react';
require('./style.css');
import ReactDOM from 'react-dom';
import App from './app.js';
ReactDOM.render(
<App />,
document.getElementById('root')
);
Free Resources