@awsui/components-react
Version:
AWS UI is a collection of [React](https://reactjs.org/) components that help create intuitive, responsive, and accessible user experiences for web applications. It is developed by Amazon Web Services (AWS). This work is available under the terms of the [A
8 lines (7 loc) • 536 B
JavaScript
import { isDevelopment } from '../../is-development';
import { warnOnce } from '../../logging';
export default function checkControlled(componentName, propertyName, propertyValue, handlerName, handlerValue) {
if (propertyValue !== undefined && handlerValue === undefined && isDevelopment) {
warnOnce(componentName, "You provided `" + propertyName + "` prop without an `" + handlerName + "` handler. This will render a read-only component. If the component should be mutable, set an `" + handlerName + "` handler.");
}
}