Socket
Socket
Sign inDemoInstall

render-it-client

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

render-it-client

## About


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

render-it-client npm version

About

Functions 'createComponent', 'hydrate', and dynamically imported, optional helpers for client side rendering.

Package has been used as a simple alternative to React to code my portfolio website: katarzyna-ziomek-zdanowicz.com. The relevant repository is avaliable on github.

Installation

npm i render-it-client -S

Details

Package exports:

  • function 'buildCreateComponent',
  • function 'enqueueScript',
  • function 'hydrate',
  • types / interfaces:
    • ClassNames,
    • ComponentFunction,
    • ComponentProps,
    • Flex,
    • HTMLAnchorElementAttributes,
    • HTMLElementAttributes,
    • HTMLElementProps,
    • HTMLInputType,
    • HTMLTag,
    • Helpers,

Function buildCreateComponent can be provided with object parameter with the following keys:

  • options = [],
  • globals = { createComponent: true, helpers: false, }.

Array 'options' defines which of the optional helpers should be dynamically imported:

  • controlBodyScroll,
  • controlInternalState (works like useState hook in React),
  • enqueueScript,
  • modifyBodyClassList,
  • windowEventsPublisher,
  • documentEventsPublisher.

Object 'global' decides whether 'createComponent' xor 'helpers' should be global objects.

Dependencies

  • publisher-subscriber-pattern
  • rendering-recursive-client-side
  • rendering-recursive-server-side

DevDependencies

  • typescript
  • webpack
  • babel
  • mocha
  • chai
  • sinon
  • eslint
  • lerna

lerna coded with love

FAQs

Package last updated on 12 Nov 2019

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