How can i create cutom HTML component in framework7?

I am creating Cordova apps with framework7-core. Sometimes, I need to create custom UI which usually needs to be used at several different parts of the app. It leads to code duplication in multiple files. It would be great if I can create custom components once and use them everywhere. Is it possible in framework7-core or I need to use it with react or vue?

It is possible with core version Router Component | Framework7 Documentation