Best frontend framework to pair with Symfony

Hey folks, I’m working on a project using Symfony 3.0 and I’m trying to figure out which frontend framework would be the best fit. I’ve been looking at options like React, Angular, Ember, and Ionic, but I’m not sure which way to go.

I’ve got a couple of things I’m really hoping for:

  1. I want to keep things simple. I don’t want to add stuff like server-side rendering or a JavaScript compiler that might make my app more complicated.

  2. I need something that makes form submission easy. It would be great if it worked well with Symfony’s form handling, like using $form->handleRequest().

The main reason I’m looking into frontend frameworks is because I’m dealing with some tricky nested collections in my forms. Some form parts are loaded with Ajax, which messes up Symfony’s usual DOM naming rules.

Has anyone tackled something similar? What framework did you end up using and why? I’d love to hear about your experiences!

have u considered svelte? it’s super lightweight and easy to grasp. i’m curious how it might handle those nested collections you mentioned. what specific challenges are you facing with the ajax-loaded form parts? maybe we could brainstorm some solutions together?

i’ve used vue.js with symfony and it worked well. its lightweight and easy to learn. the component system is great for managing complex forms and ajax. plus, it integrates nicely with symfony without extra setup. maybe try it for ur project!