JavaScript or React - database security in single-page website [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
Welcome stackoverflow community.
I'm doing small project, simple single-page website. It will also contain contact form which takes user to different page. I decided to create a database since on website I will do few responsive features ie. booking calendar where occupied dates won't be available. I wrote all my projects in vanilla js so far. I'm wondering that adding react to this project will be overkill.
I did research and know roughly cons and props for using it but I couldn't find answer if react gives you some extra safety features comparing to using vanilla js over attacks to website, and if yes, does it makes sense to write whole project in react just for those features?
Many thanks for any feedback.

I don't think you should be rewriting your app in react just for security. If you have any sensitive information. You should be keeping it on the server and not on the front-end.
For a small project. Vanilla JS can be enough. React is just for helping you manage and create UI components. It will not give you any extra security as it is still javascript in the end.

Related

Can I use multiple frameworks on a single website page? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 years ago.
Improve this question
Can I use multiple frameworks on a single website page?
I try to use multiple frameworks like Angular, Vue, or React in one website view .. is that good or we can only use one
Yes. It is usually done in big enterprise setting with many separate front-end teams each responsible for a smaller portion of a single web app. Architecting a clean approach for it can be difficult so I recommend that you avoid it if you can. Problems include:
How to handle routing such that intra- and inter-framework routes work.
How to share state (such as auth tokens) between apps.
How to share components (and code in general) between apps.
How to avoid importing the same library used by separate frameworks twice.
A popular approach is called micro frontends which mimics the micro service approach for the front end. I’m not aware of any research for how well this works in the wild.
An example (meta) framework that handles this kind of architecture for you is single-spa.

Unlike other major JS frameworks such as Angular, why does ReactJS need so many external tools to build an app? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I've been coding React for the last couple of months now. I thought, initially, just going through the React official docs would be sufficient. But I've had to learn some other tools in order to really make my apps useful/easier to developer. For example, tools like Redux and react-router. How come these tools don't already come with React officially? What's the true purpose of React vs other JS frameworks?
ReactJs is not a framework ,it's a JavaScript library and it's not a language ,it's build upon JavaScript . It's a way to solve your common problems and complex tasks easy to do.
Angularjs/Angular is a fully fledged framework - it gives you built-in solutions for promises ($q), ajax calls ($http), routing and intra-component communication via services amongst others.
Reactjs on the other hand is much less opinionated. It provides a mechanism to layout and structure view code and practically nothing else (from the list above). So it's much lighter weight and you are much freer to use other libraries/packages where you feel it is necessary.

What modules is Vue.js missing that Angular 2 has? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
What features/modules does Vue.js lack that Angular 2/4 has? I'm considering investing in learning Vue.js and possibly using it on my next project. I've seen a lot about the features it has, but I need to know what I would be losing before I can make the leap so I can figure out if I can live without it or if there are complementary frameworks/libraries that can fill the gap.
Edit
To those voting to close this question as "Too broad", I'm not asking for a complete list of differences, just the features like routing, injection, transclusion, etc.
AngularJS has strong opinions on how an application should be structured i.e. routing e.t.c. Vue's sole purpose is to be a framework on the View layer.
The Vue community has contributed to solving the other common problems around developing SPAs i.e.
For routing: vue-router
For state management: vuex
For HTTP requests: axios, vue-resource e.t.c
For futher reading:
Comparison between Vue.js and Angular1
A curated list of awesome things related to Vue.js

Web development [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
First of all hi to all, I am new at web development and I have some questions. I have started a web site few weeks ago(html,css,js) and now I don't know how to continue. what is the next step for my project and how can I practice without publish it in a server? Nowdays I am learning php and ruby but it is more complex to understand the back end of a web site.
Since you have already started a website, add more functionalities to it. This way, you can enhance the project and at the same time learn new things as you develop. For example, if the project is in HTML, learn Bootstrap and implement the same to the project. You can publish various versions of the project. If you do not wish to publish, you can work on it locally too.
You mentioned that you are learning PHP. Why not just throw in some data to the HTML using PHP and perform some CRUD operations on it? That would be a great way to learn!
https://www.w3schools.com/ is a great website to learn.
Wish you Goodluck and I hope I helped!

Is there any advantage to use the Mantra.js architecture framework? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
Meteor.js integrates well inside a Mantra.js architecture, but does it have advantages since it slows the running of my requests.
For instance a dummy request in GraphQL (get a random string from the server) runs in few ms using Apollo Client and 1 second and more using Mantra.js (exact same request wrapping Apollo stack).
It only depends what kind of project you want to work on.
Mantra.js is an architecture framework for Meteor.js, that means :
it helps a developer to follow the creation and development of its modules corresponding to the Mantra framework. The developer is free to use any kind of front-end library he/she wants, any Data Query and Client caching he wants, but in my opinion, it doesn't really improve the quality of the code. Someone can organize a project with own rules and it can be maintainable easily.
So if your team is comfortable with your code structure you definitively don't need something like Mantra.js.

Categories