Skip to content

Other frameworks quick start guide

You can integrate vite-awesome-svg-loader with any framework by using vite-awesome-svg-loader/integration-utils package. It provides two main functions:

  1. onSrcUpdate - should be called when component is mounted, or source code is updated
  2. onUnmount - should be called when component is unmounted

Knowing that, use any existing integration as an example:

  1. React
  2. Vue
  3. Vanilla JS

To help vite-awesome-svg-loader grow, please submit your integration via pull request or just create an issue and provide the source code if you don’t have time or don’t want to deal with this project’s development process.