/ahead.js

Another React Framework

Primary LanguageTypeScriptGNU General Public License v3.0GPL-3.0

Ahead.js

Yet another React.js framework


Note

Although some versions might be available: This project is in early development and is not ready for production use yet. Please be patient!

Ahead.js is a framework inspired by Next.js by Vercel. It's a framework which uses React.js, Express.js and React Router to create a server side rendered application.

Interested into learning React?

Consider checking React's learn page to learn more about React as well as get familiar with basic concepts of the framework.

Motivation

Personally, I loved the concept of Next.js. I really like how they've put such a complicated concept into a simple framework. However, I was missing something that I was familiar with since I started web development: Express. That's what was my motivation to create Ahead.js. I wanted to create a framework that would be easy to use and would be familiar to people who are used to Express. And that brings us to the next section:

Why Ahead.js?

Ahead.js brings the best of both worlds. It uses React.js for rendering, React Router for routing on client and for SSR and Express.js as the router.

Credits

  • Special thanks to FishingHacks for helping me with the project and giving me some ideas.
  • Client and Server
    • The router found in ahead.js/server is from express. It's exported from there for convenience.
    • The stuff from ahead.js/client is from react-router-dom. It's exported from there for convenience as well.
    • Full credit to these libraries and their authors.