Forms in web applications are an essential interface for user input. However, form markup can quickly become tedious to write and maintain because of the need to handle form control naming and its numerous attributes. Rails does away with this complexity by providing view helpers for generating form markup. …

What is Active Support?

Active Support is the Ruby on Rails component responsible for providing Ruby language extensions, utilities, and other transversal stuff.

What is ActiveSupport::CurrentAttributes

Abstract super class that provides a thread-isolated attributes singleton, which resets automatically before and after each request. …

Recursion is the process of defining a problem (or the solution to a problem) in terms of (a simpler version of) itself. In other word Recursive functions are functions that call themselves.

for example see function below

function countDwon(n){
console.log(n)
if(n > 1){
countDwon(n -1) // recursive call
}…

Both XML and HTML and tag_based programming language.

HTML : (Hypertext Markup Language) displays data and describes the structure of a webpage and is a simple predefined language.

XML : (Extensible Markup Language) stores and transfers data, and is a standard language that defines other languages.

What is HTML

markup language use predefined…

The Fast JSON API is a JSON serializer for Rails APIs. … The result is that in our controller actions, rather than writing a custom render each time, we write out a serializer for each object once and use Fast JSON API to control the way our data is structured.

Figaro is a simple, Heroku-friendly Rails app configuration using ENV and a single YAML file Ruby gems. Figaro was written to make it easy to securely configure Rails applications.

Configuration values often include sensitive information. …

What is Database:

A database is an organized collection of structured information, or data, typically stored electronically in a computer system. The data can then be easily accessed, managed, modified, updated, controlled, and organized.

What is SQL:

SQL (Structured Query Language) is a language for managing data in a database. SQL is referred as “special purpose”…

1. useRef Hook

useRef is a built-in React hook that accepts one argument as the initial value and returns a reference . useRef is useful when creating forms. useRef allows you to directly create a reference to the DOM element in the functional component. It is like a “box” that can hold a…

Axios and fetch both are used to send request to APIs. The differences between them are:

  1. Axios: has url request object and it is a stand-alone package that can be easily installed. Axios has wide browser support.
  2. Fetch: has no url in request object and is build into most modern…

Hooks are new feature introduced in React 16.8. It allows function components to use state and other React life cycle features without converting function component to class component. In this article I will talk about the difference between useState and useEffect hooks.

useState hook

useState is called inside function component to add…

Zainab Omar

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