🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demoup-test

Create react component demo app with vite in a simple step.

0.2.4
latest
70

Supply Chain Security

100

Vulnerability

74

Quality

76

Maintenance

100

License

Unpopular package

Quality

This package is not very popular.

Found 1 instance in 1 package

Version published
Weekly downloads
5
Maintainers
1
Weekly downloads
 
Created

demoup

Create react component demo app with vite in a simple step.

Usage

// index.ts
import { createRoot } from "react-dom/client";
import { createReactApp } from "demoup";

// `import.meta.glob` is a vite-only feature. For glob pattern, any suffix is
// okay but we recommend using `demo.tsx`.
const modules = import.meta.glob("./**/*.demo.tsx");

createReactApp(modules).then((app) => {
  const root = createRoot(document.getElementById("app")!);
  root.render(app);
});
// *.demoup.tsx
export const config = {
  title: "Demo",
};

export const DemoA = () => <div>DemoA</div>;

export const DemoB = () => <div>DemoA</div>;

FAQs

Package last updated on 28 May 2022

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