Socket
Socket
Sign inDemoInstall

forgo-powertoys

Package Overview
Dependencies
1
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    forgo-powertoys

A set of utility functions for use in Forgo Apps.


Version published
Maintainers
2
Install size
8.09 kB
Created

Readme

Source

Forgo Power Toys

A set of utility functions for use in Forgo Apps.

The rerenderElement function

Renders a component mounted on an element.

import { rerenderElement } from "forgo-powertoys";

// A forgo component.
function LiveScores() {
  return {
    render(props) {
      return <p id="live-scores">Top score is {props.topscore}</p>;
    },
  };
}

// Call rerender on the element.
rerenderElement("#live-scores", { topscore: 244 });

// As needed, any time.
rerenderElement("#live-scores", { topscore: 255 });

FAQs

Last updated on 04 Feb 2023

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