Learnings Posts

Best practices for React JS developer

Today we are going to see best practices for React JS developer

  1. Passing a boolean variables.
  2. Do not define a function within a render
  3. Naming of the components
  4. Use of the Ternary Operators
  5. Don’t Need Curly Braces in string

Passing a boolean variables

Passing boolean variables in to two components.

Not Good

return (
   <Home showTitle={true}/>
); 

Good

return (
   <Home showTitle/>
); 

Do not define a function within a render

Don’t define a function inside render.

Not Good

return (
    <button onClick={() => dispatch(ACTION_TO_SEND_DATA)}>
      Example
    </button>  
)

Good

const submitData = () => dispatch(ACTION_TO_SEND_DATA)
return (
  <button onClick={submitData}>  
    Example 
  </button>  
)

Naming of the components

You can use PascalCase for name of the components and camelCase for name of the instances.

Not Good

import createCard from './CreateCard';
const ReservationItem = <ReservationCard />;

Good

import CreateCard from './CreateCard';
const reservationItem = <ReservationCard />;

Use of the Ternary Operators

Developer how can use ternary operator in React js.

Not Good

const { role } = user;
if(role === 'ADMIN') {
  return <AdminUser />
}else{
  return <NormalUser />
} 

Good

const { role } = user;
return role === 'ADMIN' ? <AdminUser /> : <NormalUser />

Don’t Need Curly Braces in string

When developer passing string props to a children component

Not Good

return(
  <Navbar title={"My Special App"} />
)

Good

return(
<Navbar title="My Special App" />  
)

Hope this helps for React js developer

November 06, 20213 minutesVatsal SakariyaVatsal Sakariya
Business Strategy for Software Companies

What is software marketing?

The process of creating a market for any software leads to software marketing. Simply put, it is a way to market any software in the digital space for more sales and promotion of software.

Every startup software company uses a variety of methods and techniques to harness the marketing resources available in the digital marketplace.

Each software has its own user goals and benefits. Target customers are also defined according to the software. You cannot market software like other products. There are specific strategies that every startup software company needs to follow. Every company wants to increase its profits. Investing in product marketing increases profits.

There are some rules before you devise a market strategy

  • Create your story before you appear
  • Set goals before you plan to achieve
  • Create an excellent website
  • Keep the website SEO friendly
  • Email marketing campaigns

Create your story before you appear

There is a story behind every creation and also of your software. Think about your startup and the software you want to market.

Software companies make the mistake of giving too many technical explanations in their communications before the customer understands the operation of the software and what it does.

You need to create and tell a story that explains the idea of ​​software, its functions, what it offers to its customers, and ways to differentiate businesses from competitors.

Set goals before you plan to achieve

Before formulating a marketing strategy, you need to set goals. Why? It is not possible to know success unless the goal is to be achieved.

Setting goals is one way to understand what you want from a marketing strategy. Ask yourself, what are you planning to achieve with the market strategy? Is it to increase sales or to reach more target customers or is it a brand awareness marketing strategy?

Keep the website SEO friendly

You need to try to make your website SEO-friendly. It helps with organic traffic to websites. Visitors coming through organic traffic are mostly your potential customers. Give them what they want.

Email marketing campaigns

Email marketing is one of the best marketing strategies for startups. It helps build a database of potential customers as well as convert potential customers into sales. Drip email leads to sales leads by downloading sequence content or providing trial software links. Offering something for free in an email leads to your website.

October 27, 20212 minutesAnkit KalathiyaAnkit Kalathiya
White Hat SEO: Complete Informative Guide

White hat SEO is the ethical and useful proven technique suggested by search engines for a higher ranking in SERP and content strategies are based on user experience rather than spammy techniques.

In this blog post, we will discuss a complete guide of white hat SEO techniques. This is a complete information guide and I hope this guide solved your queries related to white hat SEO.

Read this post to the end to solve your query about any White Hat SEO-related topics. I am sure if you read this post to the end so your query will be solved.

So let's get started to solve user's queries with proven techniques:

What are the strategies of White Hat SEO?

1. Provide valuable content to a user

Generally, people blog posts use to gain organic traffic to a website, and also this works as lead generation. Create the content on what people are looking for and your content should be relevant to this particular topic.

If your content is relevant and authoritative so other people use it as a reference means you can backlinks from this type of user.

2. Satisfy User Intent

Satisfying user intent should be your primary goal. If users type query "SEO Guide" that means they want a result-related SEO guide, not other things. So, user intent is based on the user's query.

Generally user intent is four types: Navigational, Transaction, Commercial, Informational.

Here are some examples based on user intent, if the user search query "SEO Tutorial" means they looking for information about a particular topic so this is the informational user intent.

If user search "SEO services" means they want/give to SEO service so it is navigational user intent.

If a user searches "Top 5 strategies of SEO" it means they want to know about SEO strategies so it's commercial user intent.

If a user searches "Buy Clothes" it means they want to buy clothes so it's transactional user intent.

Strategies for satisfying user intent

  • Know your buyer's persona
  • What are they looking for
  • Optimize content with specific keywords
  • Use videos and images in the content

3. Make website mobile-friendly

Almost 52% of traffic coming to websites using mobile phones means your website should be mobile friendly are important. If your site doesn't mobile-friendly then Google can not index your site into SERP.

You can check your site is mobile-friendly or not using Google’s mobile-friendly test tool.

How many White Hat SEO techniques are there?

Why do we use white hat SEO techniques? some of the questions in your mind are related to this topic so today we discuss that topic and solve your query.

1. Prioritize to Quality Content

In Modern-day SEO content is king. So we mostly focus on content that users can easily understand and react on content. While writing content your focus should be on users not on search engines because you write content for users, not for search engines.

If users like your content and spend time then automatically your content ranks in the search engine so focus only on the best user intent content.

Some factors for Quality content,

  • Length of your content
  • Topic for content writing
  • Keyword distribution on the whole topic
  • Internal links & External links

2. Content related keyword

While writing blog posts you must know that content and keyword should be related.

Select 1 primary keyword and 3 to 4 secondary keywords for content. Don't stick only primary keyword because if the primary keyword doesn't rank in the search engine then possibility secondary keyword may be ranked in the search engine so select secondary keyword while writing content.

Each of your keywords should be related to content type.

3. Keyword-rich in the page title and meta-data

Keyword in page title and meta-data is mandatory so search engines easily understand the content type and rank in search engine.

Some people ignore this thing but it's a direct signal to search engines for ranking your page.

4. Simple website navigation

Simple website navigation boosts your organic search engine ranking also users can easily find your website pages.

If your website has a simple navigation structure then users can spend more time on your website it means your site is up the side in search engines easily because the user experience is most important to rank in search engines.

5. Fast page loading speed

Fast page loading speed is important to a higher ranking in search engines.

Core web vitals are new for the loading page speed factor so you should consider them while managing your page.

Using this increase your page loading speed:

  1. Minified Javascript and CSS file
  2. Cashed Javascript and CSS files
  3. Compressed images
  4. Reduce redirects from the website

6. Priority to user experience

Priority to user experience while designing your page and content.

Some signal to make the best user experience

  1. Decrease bounce rate
  2. Simple navigation structure
  3. Use images and video in content
  4. Use Schema structure
  5. Only use White Hat SEO techniques
  6. Paragraph should be maximum 3 to 4 line

7. Use schema markup

Schema markup is not direct ranking factors for search engine but using this make better user experience.

If you use schema on your page so google can understand and show some of the points of your pages as the content type for attracting users to your page.

So, recommended is to use schema for your page you want to rank in search engine.

8. Quality link building for webpage

Link building is an off-page SEO strategy. Quality content & link this is an important factor who want a higher rank in search engines.

Get quality link building from high domain authority sites compare to your site.

Why is White Hat SEO important?

Because without white hat SEO you never ranked in search engines.

Sites exist in search engines because of white hat SEO, no black hat or gray hat SEO techniques.

Importance of White Hat SEO

  1. Improve your search rankings in search engine
  2. Save money because you don't go for paid advertisements
  3. Produce quality content
  4. Your site should always be prepared for algorithm updates

Should you always use White Hat SEO?

Yes, obviously you should always use white hat SEO because no chance of deindexing your site in search engines.

If you use black hat SEO techniques then a high chance of your site being deindexed in search engines.

SEO experts always tell use white hat SEO techniques to your site for long-lasting highly results.

Is White Hat SEO legal?

Yes, Always without any doubt white hat SEO is legal and you should always use white hat SEO techniques for your site to better ranking in search engines.

If you have any doubt or queries related to white hat SEO then you read this complete post for solved your query or doubt.

How to do White Hat SEO?

Following steps for white hat SEO:

  1. Crete attractive design for user
  2. Don't copy the content of other sites
  3. Technical site audit for check issue or not
  4. On-page SEO site audit for check issue or not
  5. Backlink audit for quality check
  6. Follow SEO guidelines
  7. Use schema markup
  8. Update content from time to time

Conclusion:

White Hat SEO: complete informative guide in this topic we discussed complete white hat SEO importance, strategies, advantages, and try to solve queries related to this topic. I hope this guide may be useful for you.

October 17, 20213 minutesMilan GanganiMilan Gangani
Best practices to follow for UI and UX design

Appealing Imagery

In addition to the sleek layout and compelling content, the images used on the app or website grab users' attention. For the same reason, you should use compelling images as they can keep your audience engaged for a long time. Use the right size and a limited number of images to attract an audience. Images should be appropriate for your products or services.

Responsive Design

Responsive design helps provide more user experience. Now that smartphones are becoming commonplace, it is not necessary for people to access websites using PCs. So when designing a website you need to look at the preferences of the users; You need to make them mobile-friendly.

Reduced Page Load Time

Speed remains a top factor for the success of your app or website and you can’t compromise here. If your website or application takes a while to load, users will simply go to another site or application. Therefore, when designing your application or site you need to pay attention to the factors that can accelerate the speed of the final solution.

Attractive Call to Action

In addition to getting beautiful design and content, your website or app should have elements that encourage users to perform certain actions and use their services. You should use call-to-action that comes with compelling words to move them forward.

Cancel Technical Site Errors

Keeping your website or app error-free is important for your customers to have a great experience when navigating. Frequent errors also create a bad impression about the business solution and the user can stop using it completely.

InfyOm Technologies offers the best UI/UX design and brings success to your website, web application, and mobile applications with a simple, creative, and easy-to-use interface.

October 15, 20213 minutesKishan SavaliyaKishan Savaliya
How to connect contentful CMS in the gatsby website

Gatsby

Gatsby is a blazing-fast website framework for React. It allows developers to build React-based websites within minutes.

Contentful CMS

Contentful is content infrastructure. Contentful lets you create, manage and distribute content to any platform. Unlike a CMS, Contentful give you total freedom to create your own content model so you can decide which content you want to manage.

Integrate Gatsby with Contentful

Install gatsby-source-contentful package

npm install gatsby-source-contentful

gatsby-config.js file

add the gatsby config file in the following code

plugins: [
    {
        resolve: `gatsby-source-contentful`,
        options: {
            spaceId: `your_space_id`,
            accessToken: `your_access_token`
        }
    }
]

Now connect your gatsby website and contentful CMS.

Here is an example of the GraphQL API query

import React from "react"
import { useStaticQuery, graphql, Link } from "gatsby"
import Layout from "../components/layout"

const Blog = () => {
  const data = useStaticQuery(
    graphql`
      query {
        allContentfulBlogPost{  //BlogPost collection name
          edges {
            node {
              title
              id
              slug
            }
          }
        }
      }
    `
  )
  return (
    <div>
      <p>
        <Link to="/">Go back to the homepage</Link>
      </p>
      <ul className="posts">
        {data.allContentfulBlogPost.edges.map(edge => {
          return (
            <li className="post" key={edge.node.id}>
              <h2>
                <Link to={`/blog/${edge.node.slug}/`}>{edge.node.title}</Link>
              </h2>

              <p className="excerpt">
                {edge.node.excerpt.childMarkdownRemark.excerpt}
              </p>
              <div className="button">
                <Link to={`/blog/${edge.node.slug}/`}>Read More</Link>
              </div>
            </li>
          )
        })}
      </ul>
    </div>
  )
}

export default Blog

Hope this helps.

October 12, 20212 minutesVatsal SakariyaVatsal Sakariya
How To Make a Laravel Application PWA In Few Minutes

Recently, I have created a new package for Laravel Community. it's called Laravel PWA. first of all what is PWA? let me explain a bit more about PWA. PWA means progressive web application. PWA provides a facility to install your web application on mobile and desktop. you don't need to write lots of line code in native platform-specific code.

You can create a PWA site in a few minutes using Laravel PWA.

You can watch the video tutorial as well to install this package.

Step 1:

Install the package by the following command,

composer require ladumor/laravel-pwa

Step 2:

Add Service Provide into app.php config file in provider section. You can skip this step if you installed it in Laravel 6 and more.

Ladumor\LaravelPwa\PWAServiceProvider::class,

Step 3:

Add Facade to app.php config file in aliases section. You can skip this step if you installed it in Laravel 6 and more.

'LaravelPwa' => \Ladumor\LaravelPwa\LaravelPwa::class,

Step 4:

I think installation is done and no need to publish all the assets using the following command,

php artisan laravel-pwa:publish

Step 5:

This step is very important. you published all the assets in the previous step. now, you need to link all the assets in your main blade file. for ex app.blade.php

Add the following code in the root blade file in the header section.

<!-- PWA  -->
<meta name="theme-color" content="#6777ef"/>
<link rel="apple-touch-icon" href="{{ asset('logo.PNG') }}">
<link rel="manifest" href="{{ asset('/manifest.json') }}">

Add following code in root blade file before close the body,

<script src="{{ asset('/sw.js') }}"></script>
<script>
    if (!navigator.serviceWorker.controller) {
        navigator.serviceWorker.register("/sw.js").then(function (reg) {
            console.log("Service worker has been registered for scope: " + reg.scope);
        });
    }
</script>

You should watch this tutorial if you want to set it up manually instead of using this package.

October 08, 20213 minutesShailesh LadumorShailesh Ladumor
Android 11 Released: Top New Features

This is only part of what’s new, as there are over 100 features that serve app developers to further the entire Android experience. On Google's developer website, you can read about it all.

Media controls

While playing music, you can usually see a notification with music controls if you swipe down the notification drawer. However, now in Android 11, these controls are integrated into the Quick Settings menu. So, if you swipe to the top of the screen and with your Bluetooth and Wi-Fi tiles, you can see the music controls.

You can also choose which device will play music, which is accessible if you have Bluetooth earbuds or speakers connected. Drag the menu further down to see other options, such as the ability to select a song without opening the Music app.

Conversations and Bubbles

Google is finally unveiling its official implementation of the conversation bubbles. If you use Facebook Messenger on Android, you will already be familiar with this feature. This feature enables the conversation to stay in floating bubbles that can be moved around the screen and retrieved from within any application.

Google's own documentation says the section will be on "many phones," not all of them, so some manufacturers may choose to display it differently. In any case, apps will need to be updated to tell Android which notifications are conversations.

Screen recorder

Android finally has in-built screen recording. Screen recording in Android 11 is as easy as adding a quick setting tile and clicking it. Before you start recording, you can choose whether you need to record audio from your microphone or you can choose to show touch on the screen.

screen_recording_1

screen_recording_2

The new screen recorder can be accessed by tapping the 'Screen Record' tile in Quick Settings - if you don't see it on your device, press the Edit button in Quick Settings and drag the tile from the hidden options. Once you have it, just tap it to start recording.

Power button menu

Android 11 comes with a new power menu that enables you to quickly access all connected smart devices.

To reach the new menu just long-press the power button and control all connected devices like smart locks and thermostats with one click, without the need to open a lot of applications. This latest addition lets us feel like Google has finally brought smartphones to the smart home.

Notification history

Have you ever wondered which apps send the most push alerts to your phone? Did you accidentally clear the notification and aren't sure if you missed something important? If so, you'll love the new Android 11 Notification History page.

Do you ever refresh an instruction before you get a chance to read it? Right now, you don’t have to think that it was something important. Android 11 has launched Notification History which can be accessed by navigating to Settings> Apps & Notifications> Notifications> Notification History.

notification

Improved 5G Support

Android 11 includes enhanced developer support to help you reap the benefits of faster speeds and 5G networks. You can understand that when a user connects to a 5G network, they get an estimate of the connection bandwidth and check if the connection is metered.

September 21, 20213 minutesVivek BeladiyaVivek Beladiya
On-Page SEO : The Ultimate Guide[2021]

On-page are SEO types are used for ranking your webpage in google at no.1 position to get more traffic. That can take time but it's processed for a one-time setup than organically site rank in google and you get high-quality results.

Here you can get the ultimate guide about on-page SEO and you can apply this process to get results as you expect.

Factors for On-Page SEO

There are some factors that affect while process of on-page SEO.

So, let's get started,

1. Title

The title is the most important factor for the rank website in google. A page title should be attractive for the user if the user doesn't interest in your title then the user never read your blog post.

The title length should be 50 - 60 characters. Google can cut down longer versions of the title and your title doesn't see in google as you expect.

Here is the list for titles:

  • Use a keyword in the title
  • A Longer version of the keyword used in the title
  • CTA - call to action word use
  • Don't use stop words
  • Use your brand name in the title

2. Metatags

Metatags are also the most important factor for ranking. Metatags consist of a meta title, meta description, meta keyword, etc.

The length of the meta description should be generally 155 to 160 characters.

Metatags represent your whole blog in short. It should be attractive for user expectations.

Google can change your meta description and meta title user's query related but write meta description is required. And it should be relevant to your blog post.

3. SSL Certificate

Users can trust an only secure site if your site has no SSL certificate then it shows not secure so, user cannot trust on this site and don't provide information to this site.

Your site not should be HTTP but should be HTTPS using this gets user trust belongs to your site easily.

Example:

http://infyom.com/ - without an SSL certificate

https://infyom.com/ - with SSL certificate

4. Responsive Website

The website should be mobile-friendliness if not then google can not index a particular webpage or site.

5. Navigation

Navigation of your website is should be easy for users so users can spend more time on your site.

Users can easily go from one page to another page using simple navigation.

You can use a breadcrumbs snippet for easy navigation.

6. Page Loading Speed

Core web vitals plays an important role in page loading speed. Low page loading speed means users can more time spent on a website.

Key factors:

  • Images compression
  • Compress javascript and CSS files
  • Cashed javascript and CSS files
  • Light theme

7. Text Visibility

Another important factor is text visibility. Text on your site should be visible to the user. Not used word to white text in the white background is not visible for the user.

8. CTA - Call to Action

Use call-to-action words in your content for getting to user interaction with your content.

Ex. Buy Now, 2 Days left only, Create an account, Free e-book, Explore, Join now, Discover, etc. all are call-to-action words that use in your content to increase user interaction with your content.

9. Img alt text

Always use alt text for every image that is in content. Alt text should be relevant to your image.

Don't use repeat alt text in the same content.

10. Internal Linking

Your site pages should be interlinking with each other for easy navigation. Google can easily understand your site structure if you use interlinking of all pages with each other.

Google can easily crawl them and indexed them in SERP. Using this users can spend more time on your website and you can get a rank in google.

11. External linking

You can do link to high domain authority web pages on your page. This is also a ranking factor in on-page SEO.

Not limit to external linking to your web pages.

12. URL Structure

Use an easy URL structure for your web pages. Don't use a long-form of URL structure.

Conclusion:

All factors are important in on-page SEO points of view so, follow these steps to get a higher ranking in google.

September 16, 20212 minutesMilan GanganiMilan Gangani