Socket
Socket
Sign inDemoInstall

render-it-client

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    render-it-client

[![npm version](https://badge.fury.io/js/render-it-client.svg)](https://badge.fury.io/js/render-it-client)


Version published
Maintainers
1
Install size
120 kB
Created

Readme

Source

render-it-client

npm version

About

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

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,
  • 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

Last updated on 29 Oct 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc