react-form-with-constraints
react-form-with-constraints copied to clipboard
Replace console.assert() with Facebook's invariant
See https://github.com/zertosh/invariant See https://github.com/facebook/fbjs/blob/c69904a511b900266935168223063dd8772dfc40/packages/fbjs/src/forks/invariant.js
See https://github.com/BerkeleyTrue/warning, used by Material-UI: https://david-dm.org/mui-org/material-ui?path=packages%2Fmaterial-ui
The real issue is here: https://github.com/tkrotoff/react-form-with-constraints/blob/v0.12.0/packages/react-form-with-constraints/src/FormWithConstraints.tsx#L113
The console.assert() here can make user tests fail.
See 340db7341bf25fb5b7ff987b81c2e9fb006200d7, packaged with v0.13.0