Just note, vite-plugin-svgr package was release version 4, so if you install this version it won't work with syntax in this blog. You should downgrade to verion 3.3.0
Cathal Mac Donnacha Syntax is look good for library's version latest, but I don't think it will be used for most developer. So I suggest this section should be show the both syntaxs of version 3.x and 4.x
Đồng Đặng Minh I imagine anyone migrating from CRA to Vite will be using a fresh installation of Vite, therefore picking up the latest version of svgr.