3 ms·
I've got to build an SPA and I'm trying to choose between Angular and React, can you guide me a little, the app will : - create a big form based on an XML sche
by hokkos 12y ago
I've got to build an SPA and I'm trying to choose between Angular and React, can you guide me a little,
the app will :
- create a big form based on an XML schemas, the form will be used to generate valid XML with the schemas
- some schemas can be really big with more than 3000 elements, the whole thing won't be shown in full to the user directly but probably folded
- because it is based on XML Schema, it must have interactivity to make some elements repeatable, and groups of nested elements repeatable, some elements with bounds, some maybe draggable to reorder them, everything an XSD can do...
- it will also some kind of polymorphism where you can choose the children element type and have the corresponding schema showed
- it will also show a leaflet map, with some interaction between the form and the map
- there is also a rich text editor where you can arrange xml objects between formated text
I fear that angular won't be fast enough for that, but his support for forms seems better, I've tested JsonSchema forms generator like https://github.com/Textalk/angular-schema-form https://github.com/Textalk/angular-schema-form and https://github.com/formly-js/angular-formly https://github.com/formly-js/angular-formly the first one is slow when editing 3000 items the second seems fast when editing, and slow when it generates the json. I've done some angular tutorials and their concepts don't stick in my head. I've tested React and their concept stick easily in my head but there is less native support for forms.
I had just decided to go with angular partly because of all the hype around it, but I see the article and others as a bad omen and I want to go with react now. Any advise ?
- jasim 12y agoAngular will force you to convert all your rendering logic into its declarative API: ng-if, ng-repeat, ng-include etc. With React, you can simply write your program logic in Javascript and compose, reuse and pass around parameterized components with ease. Try building a simple nested tree in both Angular and React to see how both feels. Khan Academy has open-sourced their QA builder that supports creating questions and answers with graphs, radiobuttons, multi-selects, images etc. It is built in React. Take a look here: https://github.com/Khan/perseus https://github.com/Khan/perseus