在反应中使用字体awsome unicode,我正在尝试在反应中使用unicode在占位符中添加图标

问题描述 投票:0回答:0
       ` <Form.Control
          type="text"
          style={{ fontFamily: 'fontawesome' }}
          placeholder="&#xf622; Enter name of your driving school"
          className="px-3 py-2 w-100"
          onChange={(event: React.ChangeEvent<HTMLInputElement>) => {
            setDrivingSchoolName(event.target.value);
          }}
        />`

无法在 react js 中使用 unicode,fontawsome

reactjs icons font-awesome
© www.soinside.com 2019 - 2024. All rights reserved.