DEV Community

Discussion on: How to select a front-end framework?

Collapse
 
quii profile image
Chris James • Edited

If it's an SPA

  • Question if it really needs to be an SPA. It probably doesn't.
  • If so, probably react i guess as that's what I know (btw, this should be your default choice unless you're trying to learn something new for yourself)
  • If not, HTML and CSS are very good for developing websites. Sprinkle a little vanilla JS when needed.
Collapse
 
imben1109 profile image
Ben

Could these framework only be used as SPA? Actually, I do not the advantage of SPA.

I think a could try try vanillajs as so many people have mentioned.

May I know if vanillajs support two-way binding.

Collapse
 
quii profile image
Chris James

No they can be used for other things but that's the usual cited use-case.

What exactly do you mean by 2 way binding, what do you need? Is it necessary for every project?

Thread Thread
 
imben1109 profile image
Ben

two-way binding is just a concept which your variable value is bind the dom element such as input.

For example, there are a input filed and javascript variable, v. When you change the variable,v to 10, you see the field become 10. If you input 10 to the field, you will get 10 from variable v.

Reference: docs.angularjs.org/tutorial/step_06

Thread Thread
 
imben1109 profile image
Ben

Vanilla Js is just a joke. -,-

It is just a regular js.

Thread Thread
 
quii profile image
Chris James

No, that's the point.

Thread Thread
 
imben1109 profile image
Ben