LocChat/client/components/home/ping.jsx

23 lines
544 B
React
Raw Normal View History

2022-03-08 14:10:53 -05:00
import { useState } from 'react';
import { Button } from '../common/button';
export const Ping = () => {
const [pings, setPings] = useState([]);
const [key, setKey] = useState('defaultkey');
return (
<>
<header>Ping</header>
<section>
<input
type="text"
className="border-2 border-gray-700 p-2 rounded"
value={key}
onChange={(e) => setKey(e.target.value)}
/>
<Button>Ping Connect</Button>
<Button>Send Ping</Button>
</section>
</>
);
};