Skip to main content

Posts

React-js CRUD Opearation using RESTFull API

In this article, I have described using Restful API using AXIOS Library. Create Master.js to design the layout import React   from 'react'; import { Outlet } from 'react-router-dom'; import Header from './Header'; import Footer from './Footer'; function Master() {   return(         <div>             <Header />             <Outlet />             <Footer />         </div>     ); } export default Master;  Step 1st:- Create APP.js and define the path import React   from 'react'; import Master from './Master'; import Edit from './Edit'; import Delete from './Delete'; import { BrowserRouter, Routes, Route } from "react-router-dom"; import { AxiosExample } from './AxiosExample'; function App() {   return (     <BrowserRouter>     <Routes>       ...

Local JSON file CRUD Operation using Fetch API in React JS, How to Access API with local json file in react

In this article, I am describing, how to create a local JSON server and perform CRUD operation using React-JS Project. Step1st: Create React Project  npx create-react-app projectname Step 2nd:- Create db.json file under public folder and write this code {   "posts" : [     {       "id" : 1 ,       "name" : "Satheesh" ,       "email" : "Sat@mail.com" ,       "adderss" : "South street"     },     {       "id" : 2 ,       "name" : "John" ,       "email" : "john@mail.com" ,       "adderss" : "North street"     },     {       "id" : 3 ,       "name" : "Robert" ,       "email" : "robert@mail.com" ,       "adderss" : "East street"     },     {       "id" : 4 ,       "name" : "Mani" ,       "ema...

Python | Introduction to Matplotlib

Matplotlib is an amazing visualization library in Python for 2D plots of arrays. Matplotlib is a multi-platform data visualization library built on NumPy arrays and designed to work with the broader SciPy stack. It was introduced by John Hunter in the year 2002. One of the greatest benefits of visualization is that it allows us visual access to huge amounts of data in easily digestible visuals. Matplotlib consists of several plots like line, bar, scatter, histogram etc. Installation : Windows, Linux and macOS distributions have matplotlib and most of its dependencies as wheel packages. Run the following command to install  matplotlib  package : python -mpip install -U matplotlib Importing matplotlib : from matplotlib import pyplot as plt or import matplotlib.pyplot as plt  Basic plots in Matplotlib : Matplotlib comes with a wide variety of plots. Plots helps to understand trends, patterns, and to make correlations. They’re typically instruments for reasoning about quantit...