react/packages/shared
James Reggio 96fe3b1be2 Add React.isValidElementType() (#12483)
* Add React.isValidElementType()

Per the conversation on #12453, there are a number of third-party
libraries (particularly those that generate higher-order components)
that are performing suboptimal validation of element types.

This commit exposes a function that can perform the desired check
without depending upon React internals.

* Move isValidElementType to shared/
2018-03-29 11:45:41 -07:00
..
__tests__ Update additional tests to use .toWarnDev() matcher (#11957) 2018-01-03 13:55:37 -08:00
forks Add unstable APIs for async rendering to test renderer (#12478) 2018-03-28 14:57:25 -07:00
ReactDOMFrameScheduling.js Add unstable APIs for async rendering to test renderer (#12478) 2018-03-28 14:57:25 -07:00
ReactElementType.js Remove unnecessary 'use strict' in the source (#11433) 2017-11-02 20:32:48 +00:00
ReactErrorUtils.js Add stack unwinding phase for handling errors (#12201) 2018-02-23 17:38:42 -08:00
ReactFeatureFlags.js Feature flag: Use custom requestIdleCallback even when native one exists (#12385) 2018-03-15 19:28:21 -07:00
ReactFiberComponentTreeHook.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
ReactGlobalSharedState.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
ReactInstanceMap.js Update prettier to 1.8.1 (#10785) 2017-11-07 18:09:33 +00:00
ReactPortal.js Rewrote ReactIncrementalPerf-test using only public API.(#11299) (#11724) 2017-11-30 18:10:04 +00:00
ReactSymbols.js RFC #30: React.forwardRef implementation (#12346) 2018-03-14 13:07:58 -07:00
ReactTreeTraversal.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
ReactTypeOfSideEffect.js New commit phase lifecycle: getSnapshotBeforeUpdate (#12404) 2018-03-26 13:28:10 -07:00
ReactTypeOfWork.js RFC #30: React.forwardRef implementation (#12346) 2018-03-14 13:07:58 -07:00
ReactTypes.js Rename bits to unstable_observedBits (#12440) 2018-03-23 15:58:49 +00:00
ReactVersion.js Updating package versions for release 16.3.0-rc.0 2018-03-27 19:07:53 -07:00
describeComponentFrame.js Update prettier to 1.8.1 (#10785) 2017-11-07 18:09:33 +00:00
getComponentName.js Call and Return components should use ReactElement (#11834) 2017-12-12 15:04:40 -08:00
invokeGuardedCallback.js Add stack unwinding phase for handling errors (#12201) 2018-02-23 17:38:42 -08:00
isTextInputElement.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
isValidElementType.js Add React.isValidElementType() (#12483) 2018-03-29 11:45:41 -07:00
lowPriorityWarning.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00
package.json Drop Haste (#11303) 2017-10-25 02:55:00 +03:00
reactProdInvariant.js shared: convert vars into let/const (#11730) 2017-12-01 00:03:27 +00:00