WordPress has default backbone js included and we can use backebone.js for ajax in WordPress.
We just need to include it. I’ve created an example of ajax using backbone.
All you need to do is check the following link.
https://github.com/BhargavBhandari90/wp-tips/tree/main/wp-backbone-ajax