ReactComponent как deleteicon

import { ReactComponent as DeleteIcon } from '../assets/deleteIcon.svg
// 'ReactComponent' is a Create React App (react-scripts@2.0.0+) feature
function App() {
  const onDelete = () => /* your code */
  return (
    /* Some element to delete */
    <div>
    	<DeleteIcon onClick={() => onDelete()} />
    </div>
   )
}
Coffee Addict