Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@components-studio/divriots.universal-story-render

Package Overview
Dependencies
Maintainers
4
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@components-studio/divriots.universal-story-render

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
4
Created
Source

Universal story renderer

This tiny library dynamically discovers the type (UI elements only) of a given JS object using typical frameworks signatures. It also supports rendering of that object.

Table of Contents

  • Install
  • Usage

Install

This project uses npm. Go check them out if you don't have them locally installed.

$ npm install --save @divriots/universal-story-render

Usage

// using React jsx
import { typeOf, render } from "@divriots/universal-story-render";
import ReactDOM from "react-dom";

console.log(typeOf(<div />)); // React
render(() => ReactDOM, <div />, "React", div);

Supported component types

LibrarytypeOf valuedynamic required render library
ReactReactreact-dom
PreactPreactpreact
StencilStencil@stencil/core/internal/client
OmiOmiomi
RiotRiot|RiotStoryriot
SvelteSvelte|SvelteStorynone
VueVuevue
SolidSolidsolid-js/dom
DOMElementnone
DocumentFragmentDocumentFragmentnone
IterableIterablenone

Keywords

cso

FAQs

Package last updated on 22 Sep 2021

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