4 ms·
I agree with some of the other early sentiments, this is interesting. We just recently started integrating React into our Django projects. Are there any plans t
by WesleyJohnson 4y ago
I agree with some of the other early sentiments, this is interesting. We just recently started integrating React into our Django projects. Are there any plans to allow for different JS frameworks, or does the approach tightly couple with Alpine.js?
I may have to play around with this regardless; very cool.
- samwillis 4y agoCurrently yes, it is tightly coupled with Alpine.js for the server<->browser coms. However Alpine is so lightweight it's easy to throw in an `x-ignore` [0] and then mount any other framework for a component and still take advantage of the coms and bundling. There is a "BasicComponent" that currently has no JS, one idea is expand this with very basic js support (when it mounts on the page your js would receive the element) so that other frameworks can be used with Tetra, probably implemented as extensions. For react you should take a look at Reactivated[1] though! they are doing interesting things with Django and React. 0: https://alpinejs.dev/directives/ignore https://alpinejs.dev/directives/ignore 1: https://www.reactivated.io https://www.reactivated.io