~/talk

SVG in React: How to Automate Adding New Icons

TalkinRussianat Я 💛 Фронтенд 2025 · on Saturday, 2025-02-15· [react, javascript]
links:none on file
slides:none on file

Kirill Kovalyov from Centra explains how to automate adding new SVG icons into a React app using @svgr and Node.js scripts, covering the workflow from obtaining SVG files to integrating them into the project. He also compares alternative approaches such as icon fonts (e.g., Font Awesome), SVG sprites, and CSS-background icons.

AI-written summary · about

  1. 0:00Introduction
  2. 1:53Icon role in UI
  3. 3:37Icon problems in library
  4. 7:10Current icon addition process
  5. 9:20Automation tasks
  6. 10:23Solution plan
  7. 11:29Alternative solutions
  8. 14:20Custom icon approach
  9. 15:03New icon addition process
  10. 16:27Icon type generation
  11. 17:32Async loading implementation
  12. 18:55Icon loading hook
  13. 20:25Icon component render
  14. 22:09Script-based icon build
  15. 23:36Size optimization results
  16. 24:41Practical usage
  17. 25:43Icon color and styling
  18. 27:07Component testing
  19. 28:12Outcomes and benefits
  20. 29:56Conclusion
  21. 30:18Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.