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

react-groove

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-groove - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

12

index.js

@@ -10,3 +10,3 @@ 'use strict';

var Workflow = function Workflow(_ref) {
var Groove = function Groove(_ref) {
var children = _ref.children,

@@ -18,3 +18,3 @@ _ref$step = _ref.step,

Workflow.Step = function (_ref2) {
Groove.Step = function (_ref2) {
var children = _ref2.children;

@@ -107,3 +107,3 @@ return React__default.createElement(React__default.Fragment, null, children);

function useWorkflow(steps) {
function useGroove(steps) {
var initialState = React.useMemo(function () {

@@ -125,3 +125,3 @@ return isNaN(steps) ? steps[0]() : {};

var next = React.useCallback(function () {
if (state.active >= length - 1) return; // consider implicit reset at end?
if (state.active >= length - 1) return; // consider implicit reset at end?

@@ -150,3 +150,3 @@ dispatch(state.active + 1);

exports.Workflow = Workflow;
exports.useWorkflow = useWorkflow;
exports.Groove = Groove;
exports.useGroove = useGroove;
{
"name": "react-groove",
"version": "0.1.1",
"version": "0.2.0",
"description": "Simple and reusable React procedures",

@@ -5,0 +5,0 @@ "main": "index.js",

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