score:1

Accepted answer

basically you are assigning a value to eventdesc with a default value of props.eventdesc. but if you are not passing that value(should be undefined) or you are passing a null value you will get that behaviour.

you can add a default value on your render to solve this:

const { eventdate ="", eventdesc = "", eventname = "", eventpic = "" } = this.state;

but the best should be to have a default value on the constructor so you do it only once:

constructor(props) {
    super(props);
    this.state = {
        eventname: props.eventname || "",
        eventdate: props.eventdate || "",
        eventdesc: props.eventdesc || "",
        eventpic: props.eventpic || ""
    }
}

Related Query

More Query from same tag