Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

carbohydrate

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

carbohydrate

Declarative web generator

  • 0.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Ardra

Declarative web generator

const { pipe, get } = rubico

const { Div, Section, Span, H1, H2, H3, H4, P, Button } = ardra

const makeRequest = fetch('https://jsonplaceholder.typicode.com/todos/1')

const root = Div([
  H1('hey'),
  Section([
    P('yo'),
    Button('click me', {
      onClick: pipe([
        makeRequest,
      ]),
    }),
  ]),
  Section(
    Div('ayo', {
      style: get('divStyle'),
    }),
  ),
]) // function

ardra.render(root, document.body)({
  divStyle: { backgroundColor: 'pink' },
})

Principles

  • vanilla JS, no transpiling
  • use latest web technologies
  • separate environments by concern

Scope

dev -> ardra -> WebAPIs

Installation

> npm i --save ardra

Initialization

npx ardra index.js // outputs html to the console

FAQs

Package last updated on 17 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc