top | item 41840608

(no title)

attah_ | 1 year ago

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!

discuss

order

mzronek|1 year ago

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.

_heimdall|1 year ago

React hasn't been a library since they added hooks.

Hooks themselves are just a solution to async code, but the implication was that react was no longer a state-based UI rendering library and became a full blown frontend framework.

flockonus|1 year ago

React started as a library.. at this point it has server side components, and a world of plugins.

As for anything that has patterns of building with, will argue it's a framework.

meiraleal|1 year ago

React was a library before hooks. Now it is a framework and decides when your code runs, not you. And now it is a terrible framework with server components.

vasergen|1 year ago

> React is a library

Can a library have compiler?)

cooperadymas|1 year ago

A sword is also just a knife. And a Tesla truck is just an electric go-kart.

_heimdall|1 year ago

"Framework" isn't really the best term for them to actually use to describe Payload. Its basically a tool for NextJS developers to quickly build a custom CMS. I'd think of it more like CMS-in-code than a framework.

cle|1 year ago

Yes? I think this is great. IMO our goal should be to enable building higher-level abstractions on lower-level ones.

jstummbillig|1 year ago

Sure, if the lower level is stable. Nothing in this chain is close to stable.

mrexroad|1 year ago

s/framework/abstraction/g

With that said, yep, I do like robust/stable and purposeful abstractions.