Socket
Socket
Sign inDemoInstall

@appsemble/preact

Package Overview
Dependencies
9
Maintainers
4
Versions
216
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @appsemble/preact

Build your own blocks using Preact


Version published
Weekly downloads
308
increased by38.12%
Maintainers
4
Created
Weekly downloads
 

Readme

Source

Appsemble Preact SDK

Build your own blocks using Preact

Installation

npm install @appsemble/preact preact

Hello world example

import { bootstrap } from '@appsemble/preact';
import React from 'react';

function MyBlock({ actions }) {
  return (
    <button onClick={actions.onClick.dispatch} type="button">
      Hello world!
    </button>
  );
}

bootstrap(MyBlock);

Note: The script will be loaded only once. The component is then bootstrapped for every instance of your block type that is loaded by the app creator.

FAQs

Last updated on 27 Mar 2020

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc