react-json-logic
react-json-logic copied to clipboard
Uncaught TypeError: Cannot read property 'string' of undefined
could you please fix this error. this is due to PropTypes is moved from core react to prop-types
@vishnukalakota I'll take a look at it but unfortunately not soon. in the meantime, you can add this piece of code to the index.jsx or app.jsx of your project:
import React from 'react'
import PropTypes from 'prop-types'
React.PropTypes = PropTypes
Hi,
could you please explain me how the array operations(some, every, filter and map) are evaluated.
i want to apply this logic
{"map":[ {"var":"integers"}, {"*":[{"var":""},2]} ]}
on this data
{"integers":[1,2,3,4,5]}
=> will not be evaluated by JSON logic throwing an error
Thanks