🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

cerebral-computed

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cerebral-computed

Package to let cerebral view packages expose computed feature

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

cerebral-computed

A package allowing computed state dependencies in views

import computed from 'cerebral-computed';

export default computed({
  foo: 'some.state.path',
  bar: 'some.other.path'
}, state => {
  return state.foo + state.bar
})

This computed can be used in Cerebral view layers:

import myComputed from './myComputed.js'
import {Decorator as Cerebral} from 'cerebral-view-react'

@Cerebral({
  someProp: myComputed
})

FAQs

Package last updated on 08 Jun 2016

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