M
M
Maxim Barulin2016-10-11 16:07:35
JavaScript
Maxim Barulin, 2016-10-11 16:07:35

How to properly use Symfony form with ReactJs?

Hello!
I screwed the react to the symphony, now I’m thinking how to correctly transform the symphony form into a react form, the easiest way that comes to mind is just ajax request to pull the finished html from the server and show it to the user. But how right is this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2016-10-11
Protko @Fesor

no way. You don't need forms. You need to stupidly map json to an object (or array) and stupidly validate.
symfony/forms is needed when symfony needs to render forms. React is doing it for you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question