Should I really use React/Vue with Django instead of Alpine.js? [closed]

I have a page where user creates an instance. An instance has a bunch of characteristics and foreign key to product (which has category and name itself) and all the fields are static - just stylized selects and inputs, but there is just a change event handler which saves any changes in session so that user could go back to editing

With Alpine.js I replaced two selects (where user chooses product category and product name) with a single button - "select a product" and after clicking a modal appears with options depending on the step - either category or name, once both category and name are selected a card with this product appears and a button turns into "change a product".

Everything worked just fine until I started filling this with initial values from draft form, so that you need to combine Django {% if %} with Alpine.js x-if which caused flickering.

Is it really worth it to switch React/Vue + DRF or am I missing something? Considering my codebase it would be painful, but pretty much possible. The only negative thing that stops me from doing it right now is Django features I don't want to rewrite in JS - for instance auth system.

Вернуться на верх