←back to thread

214 points stefankuehnel | 1 comments | | HN request time: 0s | source
Show context
attah_ ◴[] No.41840608[source]
So let me get this straight... PayloadCMS is a framework, for Next.js which is a framework for the React framework.

Yo dawg, i heard you like frameworks!

replies(4): >>41840780 #>>41840997 #>>41841176 #>>41842441 #
mzronek ◴[] No.41841176[source]
A common misconception. React is a library.

These are examples for React frameworks: https://react.dev/learn/start-a-new-react-project#production...

Next.js is a React framework.

If Payload is a framework or not is debatable. I think it's more like a data layer around a database for a any js app and an Admin Panel (that uses Next.js now). It might be called a framework for your own Headless CMS, because it is code first. So you basically code the panel and the data structure yourself.

replies(5): >>41841381 #>>41841800 #>>41842287 #>>41843339 #>>41843533 #
vasergen ◴[] No.41841381[source]
> React is a library

Can a library have compiler?)

replies(2): >>41841594 #>>41847417 #
1. gloosx ◴[] No.41847417{3}[source]
Javascript has a compiler called Babel, which plays a huge role in modern web development. It is in fact a transcompiler, meaning it doesn't turn your javascript into bytecode, it is just transpiling stuff without changing the level of abstraction.

React Compiler is just a babel plugin for automatic performance improvement, memoization specifically, for never perfectly memoized React code.

Can library have compiler? Well why can't it? For example stdlib has a compiler, because C does.