import React, { useEffect, useState } from 'react'; import { Form, Button, Row } from 'react-bootstrap'; function Chat(props) { // const [username, setUsername] = useState('') let defaultname = sessionStorage.getItem('name'); // const [newName, setNewName] = useState({ username: '' }); // const [state, setState] = useState(false); function handleChange(e) { e.preventDefault() props.setInner(e.target.value) console.log(e.target.value) } function sendMsgCH(e) { props.sendMsg(e) } // const saveChange = (e) => { // const { name, value } = e.target // setNewName({ ...newName, [name]: value }) // } // const handleSubmit = (e) => { // e.preventDefault() // setState(true) // } return (