Answer the question
In order to leave comments, you need to log in
Why does the Element type is invalid error occur?
Mistake:
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined.
import { Input as BInput } from 'react-bulma-components';
const Input = (props) => {
const onChangeHandler = event => {
props.changeValue(event.currentTarget.value)
}
return (
<BInput type="text" value={props.result} onChange={onChangeHandler} readOnly />
)
}
export default Input;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question