Skip to content

Latest commit

 

History

History
32 lines (21 loc) · 1.44 KB

0001-libraries-and-frameworks.md

File metadata and controls

32 lines (21 loc) · 1.44 KB

Libraries and frameworks for our applications

Our applications are built using React as the frontend library.

React is the standard UI library for the City of Amsterdam, making it easier to find developers and maintain the project. Also, the Amsterdam Design System provides React components that we can utilize.

The Public App uses React with Next.js as the frontend framework, handling routing, data fetching, caching, and server-side rendering.

The Admin application is based on React-admin and uses Vite as a bundler for a client-side single-page application.

Initially, we tried using Next.js for the Admin app but encountered performance issues with React-admin, so we switched to Vite.

Decision

We considered the following frameworks (recommended by the React team):

Both are full stack web frameworks, capable of setting up very performant websites. Next is by far the more popular framework, which is why we chose it.

For our Admin application we initially started with Next.js as well. However, Next.js didn't play well with React-admin, causing performance issues. The benefits of React-admin outweigh the benefit of using the same framework for all our apps, so we dropped Next.js and migrated to Vite.