json-component-spec
v0.1.19
Published
A JSON schema definition for representing components in JSON, intended for use with SPA frameworks and similar technologies.
Downloads
44
Readme
json-component-spec
There are times when you might want to render parts of components on the server in JAMstack-based SPA frameworks like React or Vue.js.
Rendering HTML directly on the server poses security risks. A better approach may be to use SSR (Server-Side Rendering) for components, but this method assumes that the server is written in a JavaScript-based language like Next.js or Nuxt.js.
As a third alternative, you can represent components in JSON, which allows the backend server to be language-agnostic.