All Projects → mrsaeeddev → svelte-interview-questions

mrsaeeddev / svelte-interview-questions

Licence: MIT License
Concepts and Questions related to Svelte - Part of official Svelte resources list

Projects that are alternatives of or similar to svelte-interview-questions

s-date-range-picker
📅 A date range picker built with Svelte
Stars: ✭ 13 (-27.78%)
Mutual labels:  svelte, sveltejs, svelte3, svelte-js
svelte-meteor-data
Reactively track Meteor data inside Svelte components
Stars: ✭ 14 (-22.22%)
Mutual labels:  svelte, sveltejs, svelte3, svelte-js
svelte-headlessui
Unofficial Svelte port of Headless UI components
Stars: ✭ 564 (+3033.33%)
Mutual labels:  svelte, sveltejs, svelte3
svelte-inview
A Svelte action that monitors an element enters or leaves the viewport.🔥
Stars: ✭ 358 (+1888.89%)
Mutual labels:  svelte, svelte3, svelte-js
memento-svelte-electron-typescript
Template to create a desktop app with Svelte, TailwindCSS, Electron and TypeScript (with electron-updater, electron-reload and electron-builder)
Stars: ✭ 27 (+50%)
Mutual labels:  svelte, sveltejs, svelte-js
ui-svelte
A component library for Svelte
Stars: ✭ 18 (+0%)
Mutual labels:  svelte, sveltejs, svelte3
Svelte Material Ui
Svelte Material UI Components
Stars: ✭ 2,081 (+11461.11%)
Mutual labels:  svelte, sveltejs, svelte3
svelte-portal
Svelte component for rendering outside the DOM of parent component
Stars: ✭ 261 (+1350%)
Mutual labels:  svelte, sveltejs, svelte3
svelte-quotes
A small app to demonstrate use of SvelteJS
Stars: ✭ 16 (-11.11%)
Mutual labels:  svelte, svelte-framework, sveltejs
templates
tsParticles website templates collection
Stars: ✭ 42 (+133.33%)
Mutual labels:  svelte, sveltejs, hacktoberfest2020
svelte-starter-kit
Svelte with brilliant bells and useful whistles
Stars: ✭ 384 (+2033.33%)
Mutual labels:  svelte, sveltejs, svelte3
.codebits
📚 List of resources for Algorithms and Data Structures in Python & other CS topics @2017
Stars: ✭ 144 (+700%)
Mutual labels:  resources, interview, interview-questions
Awesome Scalability
The Patterns of Scalable, Reliable, and Performant Large-Scale Systems
Stars: ✭ 36,688 (+203722.22%)
Mutual labels:  resources, interview, interview-questions
hacker-feud
💥 A single page web game made with Svelte.
Stars: ✭ 61 (+238.89%)
Mutual labels:  sveltejs, svelte3, svelte-js
svelte-accessible-dialog
An accessible dialog component for Svelte apps
Stars: ✭ 24 (+33.33%)
Mutual labels:  svelte, sveltejs, svelte3
svelte-typescript-rollup
Svelte + Typescript + Rollup
Stars: ✭ 79 (+338.89%)
Mutual labels:  svelte, sveltejs, svelte-js
svelte-webcomponents
A ready-to-use project template to build custom elements (web components) with Svelte 3 with support and examples for web components, jest, sass, nested components with props, eslinting, stylelinting, Github actions, propagating custom events from shadow-DOM to real-DOM etc.
Stars: ✭ 22 (+22.22%)
Mutual labels:  svelte, sveltejs, svelte3
Coder
求职信息 组队刷题 经验交流
Stars: ✭ 22 (+22.22%)
Mutual labels:  interview, interview-questions
Python
Repository for Python codes and algos. Star the repo too.
Stars: ✭ 102 (+466.67%)
Mutual labels:  interview-questions, hacktoberfest2020
programmingtil-svelte
No description or website provided.
Stars: ✭ 59 (+227.78%)
Mutual labels:  svelte, sveltejs

Svelte Questions

Concepts and Questions related to Svelte

Questions

Q.1 What is Svelte?

Svelte is a tool for building fast web applications.

It is similar to JavaScript frameworks such as React and Vue, which share a goal of making it easy to build slick interactive user interfaces.

But there's a crucial difference: Svelte converts your app into ideal JavaScript at build time, rather than interpreting your application code at run time. This means you don't pay the performance cost of the framework's abstractions, and you don't incur a penalty when your app first loads.

Q.2 How's Svelte different from traditional frontend frameworks like ReactJS and VueJS?

Traditional frameworks like ReactJS and VueJS do the bulk of their work in the browser i.e on the run time while Svelte shifts that work into build step i.e during compile time.

So, instead of updating the DOM using Virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.

Q.3 What is reactivity in app development?

At the heart of modern interactive web applications is the concept of reactivity. When an app is reactive, it means that any change of values (e.g. as a result of user input) will be automatically reflected in the Document Object Model (DOM), a logical tree structure that represents the HTML page a user can see in the browser, or any other place in which there are values that depend on the changed ones.

Q.4 How do modern frameworks other than Svelte make it possible to develop reactive apps?

The introduction of modern asynchronous and event-driven web app frameworks such as React, Angular and Vue made it possible to develop such reactive apps. To that end they use various techniques (such as the Virtual DOM) that interpret the app code in the background, making it possible to update individual elements of the app without having to refresh the entire HTML page.

Q.5 How reactive apps built using Svelte are different from those built using other modern frameworks?

Svelte aims to compile the code your write at build time, so that only pure JavaScript that directly manipulates the DOM ever makes it to the browser. That’s why it calls itself the “disappearing framework” – by the time the app’s code appears in the browser, there is really no framework anymore.

Q.6 What are main advantages of Svelte compared to other frameworks?

  • Write less code: Svelte aims to let you build boilerplate-free components using languages you already know i.e HTML, CSS, JavaScript
  • No virtual DOM: Svelte compiles your code to tiny, framework-less vanilla JS — your app starts fast and stays fast
  • Truly reactive: No more complex state management libraries — Svelte brings reactivity to JavaScript itself

Q.7 Does Svelte support SSR and mobile app development?

Yes. Svelte has Sapper, similar to Next.js of React and Nuxt.js of Vue for SSR. SSR can speed up the first render of your app and improve its SEO. For mobile app development, there’s Svelte-Native. It works on top of NativeScript.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].