How to use the react-icons.IconsManifest.map function in react-icons

To help you get started, we’ve selected a few react-icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-icons / react-icons / packages / preview / src / App.js View on Github external
function App() {
  const [searchText, setSearchText] = useState("");

  return (
    
      <div>
        
        <div>
          
        </div>
      </div>
    
  );
}
github react-icons / react-icons / packages / preview / src / pages / search / index.js View on Github external
className="btn-close"
        aria-label="Close Search"
        onClick={closeSearch}
      &gt;
        ✕
      
      {searchText.length &gt; 2 ? (
        &lt;&gt;
          <h1>
            <span aria-label="Magnifying Glass" role="img">
              🔍
            </span>
            Search: <i>{searchText}</i>
          </h1>
          <div>
            {IconsManifest.map(icon =&gt; (
              
            ))}
          </div>
        
      ) : (
        <h1>Please enter at least 3 characters to search...</h1>
      )}
    
  );
}
github react-icons / react-icons / packages / preview / src / components / sidebar / index.js View on Github external
<input placeholder="Search Icons" value="{searchText}" type="text">
      
      <ul>
        <li>
          
            Home
          
        </li>
        {IconsManifest.map(icon =&gt; (
          <li>
            {icon.name}
          </li>
        ))}
      </ul>
    
  );
}