openpgp-frontend-preact
v1.0.1
Published
An OpenPGP frontend using Preact
Downloads
5
Readme
OpenPGP.js Frontend for Preact
This package provides an OpenPGP.js frontend application as a Preact component.
See repository's README for details of the application.
This package exports a App
component and render
utility function of
the following signature:
declare const App: ComponenType<{ children?: never }>;
declare const render: (element: Element | ShadowRoot) => void;
export { App, App as default, render };
This packages provides four forms of the code:
openpgp-frontend-preact
is the compiled and minified code.openpgp-frontend-preact/dist/index.js
is the compiled but non-minified code.openpgp-frontend-preact/dist/index.jsx
is non-compiled and non-minified code.openpgp-frontend-preact/dist/index.min.jsx
is non-compiled but minified code.
3 and 4 are suitable for partial hydration.
License
MIT