Lightweight JavaScript library to supplement Django templates?

Hi all, I hope this is not off-topic here.

Do you have recommendations for JS library to use together with Django templates? I am used to jQuery but I feel like its days are past it. Vanilla JS is fine but for more complex tasks I would like to use library.

I dont want something like React or Vue and to build entire front-end using JS. Just smaller tasks like submitting forms with AJAX, drag-and-drop tables, toast notifications etc.

Thanks!

Something that I encourage people to use is - https://intercoolerjs.org/ it makes Ajax so simple it’s definitely a must have in conventional Django apps.

1 Like

I use https://stimulusjs.org at work, designed for Ruby on Rails + HTML templates but applies equally well to Django. Super simple framework, basically vanilla JS but with some scaffolding.

2 Likes