Next.js is awesome. However, its routing system isn't for me. IMHO React Router is a better foundation upon which such a framework should be built, and that's the goal here. Routes are just components and don't / should not have anything to do with folder structure. Static route configs are fine. Next.js's getInitialProps was/is a brilliant idea. Route-based code-splitting should come for free or be easy to opt into. Route-based transitions/analytics/data loading/preloading etc., should either come for free or be trivial to implement on your own. After.js enables Next. js-like data fetching with any React SSR app that uses React Router. You can quickly bootstrap an SSR React app with After.js using Razzle. While Razzle is not required, this documentation assumes you have the tooling setup for an isomorphic React application. Refer to Razzle's docs for tooling, babel, and webpack customization.

Features

  • You can extend ctx, and pass your custom params to it
  • As you have probably figured out, React Router powers all of After.js's routing
  • You can use any and all parts of RR
  • By default, after.js will wait for getInitialProps to get resolved or rejected
  • React Router can detect No Match (404) Routes and show a fallback component
  • You can define your custom fallback component in routes.js file

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

MIT License

Follow After.js

After.js Web Site

You Might Also Like
RMM Software | Remote Monitoring Platform and Tools Icon
RMM Software | Remote Monitoring Platform and Tools

Best-in-class automation, scalability, and single-pane IT management.

Don’t settle when it comes to managing your clients’ IT infrastructure. Exceed their expectations with ConnectWise RMM, our MSP RMM software that provides proactive tools and NOC services—regardless of device environment. With the number of new vulnerabilities rising each year, smart patching procedures have never been more important. We automatically test and deploy patches when they are viable and restrict patches that are harmful. Get better protection for clients while you spend less time managing endpoints and more time growing your business. It’s tough to locate, afford, and retain quality talent. In fact, 81% of IT leaders say it’s hard to find the recruits they need. Add ConnectWise RMM, NOC services and get the expertise and problem resolution you need to become the advisor your clients demand—without adding headcount.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of After.js!

Additional Project Details

Programming Language

TypeScript

Related Categories

TypeScript Frameworks

Registered

2022-01-31