S
S
sinneren2019-07-25 12:36:32
React
sinneren, 2019-07-25 12:36:32

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.

The code:
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

1 answer(s)
R
Roman Alexandrovich, 2019-07-25
@sinneren

there is no Input in react-bulma-components

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question