text: import React from 'react';
  import useInputs from './useInputs';
  
  const Info = () => {
    // useInputs의 return value
    const [state, onChange] = useInputs({
      name: '',
      nickname: '',
    });
  
    const { name, nickname } = state;
  
    return (
      <div>
        <div>
          <input type="text" name="name" value={name} onChange={onChange} />
          <input
            type="text"
            name="nickname"
            value={nickname}
            onChange={onChange}
          />
        </div>
        <div>
          <b>이름: </b> {name}
        </div>
        <div>
          <b>닉네임: </b> {nickname}
        </div>
      </div>
    );
  };
  
  export default Info;
  