Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-realar

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-realar - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

package.json
{
"name": "babel-plugin-realar",
"description": "Automatic observe jsx arrow functions for Realar",
"version": "0.1.1",
"version": "0.1.2",
"main": "./src/plugin.js",

@@ -14,6 +14,7 @@ "files": [

},
"dependencies": {
"@babel/core": "7.12.10"
"peerDependencies": {
"@babel/core": "*"
},
"devDependencies": {
"@babel/core": "7.12.10",
"jest": "26.6.3",

@@ -20,0 +21,0 @@ "prettier": "2.2.1"

@@ -7,7 +7,7 @@ # babel-plugin-realar

That plugin for babel wrap all not wrapped arrow function (that contains JSX) to Realar `observe` function. Less code more effectivity!
That plugin for babel wraps all not wrapped arrow functions (that contains JSX) to Realar `observe` function. Less code more effectivity!
```javascript
import React from 'react';
import { shared } from 'realar';
import { box, shared } from 'realar';

@@ -23,3 +23,2 @@ class Ticker {

const { value, next } = sharedTicker();
return (

@@ -35,2 +34,4 @@ <>

[See wrapped version of it on CodeSandbox](https://codesandbox.io/s/realar-jsx-observe-example-5f2k2?file=/src/App.tsx)
You are no need more to wrap (decorate) JSX components to `observe` function! It will be automatic.

@@ -37,0 +38,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc