react-inline-logic
Advanced tools
Comparing version 0.0.11 to 0.0.12
@@ -1,2 +0,2 @@ | ||
import React from 'react' | ||
import React, { Fragment } from 'react' | ||
@@ -11,3 +11,3 @@ const If = ({condition, children})=>( | ||
const For = ({list=[], onLoop=(item, index)=>(<div key={index}>{index}</div>), onLoopComplete=()=>{}, onLoopBreakIf=()=>false, onLoopContinueIf=()=>false})=>{ | ||
const For = ({list=[], onLoop=(item, index)=>{}, onLoopComplete=()=>{}, onLoopBreakIf=()=>false, onLoopContinueIf=()=>false})=>{ | ||
let r=[], index=-1, hasLoop=false; | ||
@@ -14,0 +14,0 @@ for(let i of list){ |
{ | ||
"name": "react-inline-logic", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "This component encapsulates some opperations as if, while and for to be used as one Tag inside JSX to compose some logical expression inline.", | ||
@@ -31,9 +31,9 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"jest-cli": "23.2.0", | ||
"react": "16.2.0", | ||
"react-dom": "16.2.0", | ||
"react-scripts": "1.1.1", | ||
"enzyme": "3.3.0", | ||
"enzyme-adapter-react-16": "1.1.1", | ||
"jest-cli": "23.2.0", | ||
"jest-enzyme": "6.0.1", | ||
"react": "16.2.0", | ||
"react-dom": "^16.13.0", | ||
"react-scripts": "1.1.1" | ||
"jest-enzyme": "6.0.1" | ||
}, | ||
@@ -40,0 +40,0 @@ "jest": { |
6984