Issue #662
Use spread operator
import React, { Component, useState, useEffect } from 'react';
const [state, setState] = useState({
message: '',
chats: [],
sending: false
})
setState(prevState => ({
...prevState,
message: '',
sending: false
}))
Updated at 2020-06-12 21:23:42