Gathering detailed insights and metrics for cycle-widgets
Gathering detailed insights and metrics for cycle-widgets
Gathering detailed insights and metrics for cycle-widgets
Gathering detailed insights and metrics for cycle-widgets
npm install cycle-widgets
Typescript
Module System
Node Version
NPM Version
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
38
25
Widgets written in Cycle.js and Remcycle
directory structure:
React
shouldComponentUpdate
or with recompose's shouldUpdate
or pure
as they prevent unnecessary renders, but if you're not careful, they'll also prevent necessary rendersrecompose
recompose
for adding view-specific functionality to React components (so that they don't have to be class components, if possible)styling, CSS
styled.div
and styled.span
from styled-components
in place of div
s, span
s, etc when you know how those elements should be styled and/or how they should style their children elementsinherit
or 100%
or at the very least percentagesmost and streams
tap(::console.log)
to inspect the stream - if a stream is not logging, then you're not combining/sampling the streams correctly or you're not using it anywhere (and thus, it isn't firing)sample
should take the sampler as the second argument if you want it's values available in the sampling functionCycle
combine
streams with the props
stream if they contain data you want to rendersample
a props
stream with another when you want to limit activity of a props
streamprops
streams should have a .thru(hold)
appended to them
props
streams might also benefit from a .skipRepeatsWith(shallowEquals)
, as this prevents props from being emitted if their top level properties are equal to the last set of props emitted
remcycle
remcycle
for adding state-specifc and interaction-specific functionality to Cycle componentspropTypes
and actionTypes
to document:
controlled, un-controlled and semi-controlled components
withState
general bugs one might encounter
No vulnerabilities found.
No security vulnerabilities found.