import React, { useCallback, useState } from 'react'; import { post } from './api'; import UIButton from './UIButton'; import UISecondaryBox from './UISecondaryBox'; import UITextInput from './UITextInput'; export default function GroupCreator() { const [name, setName] = useState(''); const createGroup = useCallback(() => { post('/groups', { name, }); }, [name]); return (

Create Group

Name Create group
); }