New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

redity

Package Overview
Dependencies
Maintainers
0
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redity

Library for render control

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
22
-21.43%
Maintainers
0
Weekly downloads
 
Created
Source

Redity

npm version install size

Manage renders.

npm install redity

Read the documentation here.

import { useRender, render } from "redity";
export const KEYNAME = "MY_KEYNAME";
export const store = {
  message: "",
};
// outside function
function handleClick() {
  store.message = "Welcome to Redity!";
  render(KEYNAME);
}

export default function Component() {
  useRender(KEYNAME);
  return (
    <div>
      <p>{store.message}</p>
      <button onClick={handleClick}>Click me! :D</button>
    </div>
  );
}

Requirements: react@^16.8.0

Keywords

react

FAQs

Package last updated on 05 Feb 2025

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