Socket
Socket
Sign inDemoInstall

realar

Package Overview
Dependencies
3
Maintainers
1
Versions
129
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    realar

My favorite React state management


Version published
Maintainers
1
Install size
7.68 kB
Created

Readme

Source

Realar

npm version npm bundle size build status code coverage

My favorite React state management.

class Counter {
	count = 0;
	inc() { this.count += 1; }
	dec() { this.count -= 1; }
}

const App = () => {
	const { count, inc, dec } = useService(Counter);
	return (
		<>
			<i>{count}</i>
			<button onClick={inc}>+</button>
			<button onClick={dec}>-</button>
		</>
	)
}

This example on CodeSandbox

Install

npm i --save realar
# or
yarn add realar

Keywords

FAQs

Last updated on 16 Jun 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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc