---
title: "Discussion on \"Vue vs. Svelte vs. React\" | Hashnode"
description: "Discussion on \"Vue vs. Svelte vs. React\". Side by side comparison, built with Fauna"
url: "https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Vue vs. Svelte vs. React](https://heyjtk.hashnode.dev/vue-vs-svelte-vs-react?utm_source=hashnode&utm_medium=feed)

Side by side comparison, built with Fauna

Jan 28, 2022 · 16 min read · heyjtk.hashnode.dev  
Updated Feb 2, 2022  
Read the article

-   [#vuejs](https://hashnode.com/tag/vuejs)
-   [#svelte](https://hashnode.com/tag/svelte)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[JTK](https://hashnode.com/@heyJTK)

@heyJTK

  
[View profile](https://hashnode.com/@heyJTK)

Senior Software Engineer

I am a Senior Backend Software Engineer who currently works with Python, Flask, AWS, and PostgreSQL. In past roles I have operated broadly and got my start very full stack, with varied roles that have included SQL/ETL work, VueJS, C#, and whatever else they could throw at me. In my free time my current interests are Golang and getting into more advanced database topics and I am a paid freelance writer for tech and database companies.

## Responses 4

Markdown supported · ⌘↵ to post

[Iqboljon Mutalibov](https://hashnode.com/@IqbolJON1410)

[Feb 3, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61fc04148d15cb3e7ce5f11e)

All is well Thank you too

[Colin Bate](https://hashnode.com/@colinbate)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93)

You mention that you need to keep your Fauna key safe, which I agree with. However, you then embed those keys into your app. Those keys will ship as part of your JS files.

Since the keys you created in this example are admin keys I'm guessing that would give someone full access to your data. You might be ok with some restricted read-only keys. Otherwise, you may want to move your data access to something like a serverless function.

The [Vue CLI documentation](https://cli.vuejs.org/guide/mode-and-env.html#environment-variables) specifically says not to store private or secret information in the `.env` files.

[Shadid Haque](https://hashnode.com/@shadid)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93#reply-61fab1a398d3a620773e51f0)

yup, I agree, revealing those keys can allow potential bad actors to access your data. A best practice would be to limit it to only read access then put them in an environment variable.

[JTK](https://hashnode.com/@heyJTK)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93#reply-61facb2c43e34d1181697a0f)

Yeah in continuity with the last comment, there's a reason the entire article takes place on localhost ;) the objective of this code is me to look at all three frameworks, this is not something intended to be deployed, nor is it structured as a "real" app beyond Hello World complexity would be

[Colin Bate](https://hashnode.com/@colinbate)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61faa27898d3a620773e4f93#reply-61fadc2043e34d1181697bf7)

[JTK](https://hashnode.com/@heyJTK) That is fine, and I'm glad that you didn't deploy this. I had noticed that you didn't provide an online working version. But I wanted to mention it because you do encourage others to follow along (with boilerplate repos included) and if people do deploy what they created, they are putting their Fauna keys at risk.

[Colin Bate](https://hashnode.com/@colinbate)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61fa985843e34d1181697227)

Always great to see Svelte getting favorable press. One thing I thought I would mention is that while `$$props` will work to access properties, it isn't the official way of doing it.

As per the [Svelte docs](https://svelte.dev/docs#component-format-script-1-export-creates-a-component-prop), you want to have something like this in your script block:

```
export let db;
export let q;
```

[JTK](https://hashnode.com/@heyJTK)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61fa985843e34d1181697227#reply-61faad8043e34d11816975d4)

Yeah definitely took some liberties with conventions to keep parity/simplicity (same for the React example) would not necessarily make the same choices on anything more robust than a Hello World :)

[Eleftheria Batsou](https://hashnode.com/@eleftheriabatsou)

[Feb 2, 2022](https://hashnode.com/posts/vue-vs-svelte-vs-react/61f460926bb59d5767db452c/comment/61fa4da798d3a620773e4381)

Great writing [JTK](https://hashnode.com/@heyJTK)!

P.S. If you are using any social media (twitter, linkedin) I'd suggest you add them to your Hashnode profile so more people can follow your work.
