Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(
typeof nextElement === 'function' ?
' Instead of passing a component class, make sure to instantiate ' +
'it by passing it to React.createElement.' :
// Check if it quacks like an element
nextElement != null && nextElement.props !== undefined ?
' This may be caused by unintentionally loading two independent ' +
'copies of React.' :
''
)
);
warning(
typeof container === 'string' ? (
container === TRANSIENT_CONTAINER_IDENTIFIER ||
Board.isAcceptablePort({comName: container})
) : true,
'Attempting to render into a possibly invalid port: %s',
container
);
if (container) {
const prevConnection = connectionsByContainer[container];
if (prevConnection) {
warning(
prevConnection.status !== 'CONNECTING',
'Attempting to render to port `%s` that is in the process of mounting. ' +
'You should wait until ReactHardware(comp, port, callback) callback is ' +
'called to render again',
container
);