SFCs are components except they are self-contained in their own files.
Single-file components allow us to build an entire component (structure, style, and function) in one file. They make modularizing our app and using new technologies in them easier.

A Vue component can be declared in a JavaScript file (.js)…

Applying Filters For Text Formatting

Vue.js allows you to define filters that can be used to apply common text formatting.

Filters are usable in two places:

i. mustache interpolations 
{{ message | capitalize }}
ii. v-bind expressions.
<div v-bind:msg=”message | capitalize “></div>

You can define a filter locally in a component’s options or globally before creating the Vue instance:

filters: { 
capitalize: function (value) {
if (!value)
return ‘’
value = value.toString()
return value.charAt(0).toUpperCase() + value.slice(1)

A quick introduction to the React useState hook

In React, functional components are basically stateless components as you cannot manage the state in them. But with the introduction of Hooks in React 16.8 version, If you write a function component and realize you need to add some state to it, you can use useState Hook.

Basically, useState lets…

You shoot me down, but I won’t fall I am titanium.

Yes,No matter what I won’t fall.I will not give up.No matter what I will not give up on my dreams. No matter what I will not give up on myself. Yes I believe in myself. I deserve better much better. I will get what I deserve.

I have been made for bigger things. I have the capabilities and I should get better opportunities and better life.

I am worth it no matter what other see or think or called. I know my capabilities I know I am valuable and I know I give my best and try hard for everything. Why I should not? Why not?

I can and I will!

I am Worth it and I deserve best!

I will not fall no matter what!

Remember this whenever you feel like falling apart.Hope this will motivate you🙂

Categorizing Your Content in HTML5

If you are a front-end developer you must have heard of semantic tags. Well for many it's a favorite interview question.

Wondering what exactly it is??

Believe me, its a not a big deal, Semantics simply allow you to describe more precisely what your content is.

Let me give you…

Returning Strings Indicating The Type Of The Operand

The typeof operator returns a string indicating the type of the unevaluated operand.

The syntax of typeof operator is:

typeof operand
typeof (operand)

Here, the operand is a variable name or a value.

You must be thinking why we need that………….


Harsha Deshmukh

Coder…Front-end developer Learner…Enthusiastic Reader…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store