Ads 468x60px

Labels

Monday, November 28, 2022

create react app with create-react-app | NPX | Complete React Course in Hindi #3

create react app with create-react-app | NPX | Complete React Course in Hindi #3

Complete react course: In this react course, we will see how to used NPX create-react-app using projects. we will look into creating a new react app using create-react-app.

Complete react course: In this react course, we will see how to use react js. React is an amazing library for creating user interfaces.

React is a JavaScript library created by Facebook
React is a User Interface (UI) library
React is a tool for building UI components

You will be learn how to setup npx create-react-app in start.
You will be learn about folder structure.

Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.

So, Like , subscribe, share, and support to keep us motivating.



Don't Forget to Follow me on all Social Network,

YouTube Channel :- https://www.youtube.com/@azadMalikRohit
Twitter: https://twitter.com/rohitazad
Facebook: https://www.facebook.com/rohitazadmalik/
Stackoverflow: https://stackoverflow.com/users/1365428/rohit-azad-malik
LinkedIn: https://www.linkedin.com/in/rohitazad/
Github: https://github.com/rohitazad

react setup in visual studio code | how to install react js | Complete React Course in Hindi #2

react setup in visual studio code| how to install react js | Complete React Course in Hindi #2

in this video you will be learn some basic concepts How to create react app boiler by Rohit Azad Malik (R.A.M)

Complete react course: In this react course, we will see how to use react js. React is an amazing library for creating user interfaces.


React is a JavaScript library created by Facebook
React is a User Interface (UI) library
React is a tool for building UI components

You will be learn how to setup react js in start.
You will be package json file .
You will be learn about folder structure.

Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.
So, Like , subscribe, share, and support to keep us motivating.



Don't Forget to Follow me on all Social Network,

YouTube Channel :- https://www.youtube.com/@azadMalikRohit
Twitter: https://twitter.com/rohitazad
Facebook: https://www.facebook.com/rohitazadmalik/
Stackoverflow: https://stackoverflow.com/users/1365428/rohit-azad-malik
LinkedIn: https://www.linkedin.com/in/rohitazad/
Github: https://github.com/rohitazad

Introduction to React Js | Complete React Course in Hindi # 1

Introduction to React Js | Complete React Course in Hindi # 1

in this video you will be learn some basic concepts of react js in theory module by Rohit Azad Malik (R.A.M)

Complete react course: In this react course, we will see how to use react js. React is an amazing library for creating user interfaces.

React is a JavaScript library created by Facebook
React is a User Interface (UI) library
React is a tool for building UI components


You can Learn Once, Write Anywhere.
You will be learn about Virtual DOM.
You will be learn about JSX .
You will be learn about React Hooks.


Guys, Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network TimeLines.

So, Like , subscribe, share, and support to keep us motivating.

Don't Forget to Follow me on all Social Network,

YouTube Channel :- https://www.youtube.com/@azadMalikRohit
Twitter: https://twitter.com/rohitazad
Facebook: https://www.facebook.com/rohitazadmalik/
Stackoverflow: https://stackoverflow.com/users/1365428/rohit-azad-malik
LinkedIn: https://www.linkedin.com/in/rohitazad/
Github: https://github.com/rohitazad

Friday, November 11, 2022

callback in javascript in hindi | callback function in javascript synchronous vs asynchronous

callback in javascript in hindi | callback function in javascript synchronous vs asynchronous.

In this video you will be learn callback function in javascript .

A callback function is a function passed into another function as an argument, which is then invoked inside the outer function to complete some kind of routine or action.

You can watch on video of Callback in javascript

now lets code to this
function printName(name) {
alert(`hi, ${name}`);
}

function useCallbackFun(callback) {
let name = prompt("Please enter your name.");
callback(name);
}

useCallbackFun(printName)

Now we create two function one is printName and seconod in useCallbackFun in this code we get the name in as argument in printName function and show to alert with text hi "name";


now in another way if we take time to get name then we used to this way to callback function

function printName(name) {
alert(`hi, ${name}`);
}

function useCallbackFun(callback) {
let name = '';
setTimeout(function(){
name = prompt("Please enter your name.");
callback(name);
},100)


}
useCallbackFun(printName)


Now let create another function with get odd and even number
as below is example :-


function isOdd(number) {
return number % 2 != 0;
}
function isEven(number) {
return number % 2 == 0;
}

function filter(numbers, fn) {
let results = [];
for (const number of numbers) {
if (fn(number)) {
results.push(number);
}
}
return results;
}
let numbers = [1, 2, 4, 7, 3, 5, 6];

console.log(filter(numbers, isOdd));
console.log(filter(numbers, isEven));


So, Like , subscribe, share, and support to keep us motivating.

Don't Forget to Follow me on all Social Network,
Twitter: https://twitter.com/rohitazad
Facebook: https://www.facebook.com/rohitazadmalik/
Stackoverflow: https://stackoverflow.com/users/1365428/rohit-azad-malik
LinkedIn: https://www.linkedin.com/in/rohitazad/
Github: https://github.com/rohitazad


Checkut t my chaanel in youtube :- https://www.youtube.com/c/AzadMalikRohit

Thursday, November 10, 2022

Movies and TV Series Searching App in React JS | Movies App | React App | ReactJs Project

Movies and TV Series Searching App in React JS | Movies App | React App | ReactJs Project

In this tutorial we'll be creating a movie application using React, Routing, Axios, React Bootstrap Css, React Pagination, React Alice Carousel implementing React Hooks, and fetching data from an external API (The Movie Database).

In this video we creating a home page with call a api using useEffect lifecycle hook and do a pagination in bottom.

Let's Create a Movies and TV Series App in React JS and React Bootstrap with full responsive functionality. We will use MovieDB API for backend.

We create multiple pages :-
1. Top Trending
2. Top Trending Movies with Filter By Categories
3. Top Trending TV Series with Filter By Categories
4. Search Movies / TV Series
5. CONNECT WITH US
6. About Page


1. App setup
2. React Routing
3. Dynamic Routing
4. AXIOS setup and used
5. React Bootstrap install and setup
6. Bootstrap Icons
7. React Pagination
8. React Alice Carousel
9. themoviedb API used and setup


Movie API Document Page Url
:- https://www.themoviedb.org/documentation/api


(Create an account and request an API key) Movie API Home Page Url
:- https://www.themoviedb.org/


GitHub source code url :- https://github.com/rohitazad/my-entertainment-react
app live url :- https://my-entertainment-react.vercel.app/


So, Like , subscribe, share, and support to keep us motivating.

Don't Forget to Follow me on all Social Network,
Twitter: https://twitter.com/rohitazad
Facebook: https://www.facebook.com/rohitazadmalik/
Stackoverflow: https://stackoverflow.com/users/1365428/rohit-azad-malik
LinkedIn: https://www.linkedin.com/in/rohitazad/
Github: https://github.com/rohitazad


Checkut t my chaanel in youtube :- https://www.youtube.com/c/AzadMalikRohit

map filter reduce in hindi | JavaScript Tutorial in Hindi | higher order function in hindi

map filter reduce in hindi | JavaScript Tutorial in Hindi | higher order function in hindi


map filter reduce in hindi | JavaScript Tutorial in Hindi | higher order function in hindi .

Map, filter & reduce Array functions are the most popular Higher-Order Functions in JavaScript In this article you will learn everything about map filter reduce sort and forEach Between Regular Functions and Arrow Functions basic + advanced javascript in hindi.

In this article I cover everything you need to know about the higher order function in Regular Functions and Arrow Functions .

Concepts Covered:
1. forEach
2. Filter
3. map
4. sort
5. reduce
now let's create two variable and used to both variable in HOF (higher order function)

const peopleData = [
{name:'Mobile', category:'Gadget', age:5, price:25000},
{name:'TV', category:'Appliances', age:10, price:35000},
{name:'Washing Machine', category:'Appliances', age:15, price:42000},
{name:'HeadFone', category:'Gadget', age:3, price:12000},
{name:'Microwaves', category:'Appliances', age:5, price:13500},
{name:'Mixer', category:'Appliances', age:10, price:9000}
]

const ageData = [12,7,11,23,18,22,17,9,22,32,45,28,6,4,13]



1.forEach (let's used to forEach method in peopleData variable)
used to first normal loop


for(let i =0; i< peopleData.length; i++){
console.log(i,'__', peopleData[i])
}


now in this code we do the normal loop with peopleData length and console log print to every item with index no.

now let's write to this in ES5 Regular function with forEach

peopleData.forEach(function(item, index){
return console.log(index, '_', item)
})


in this above code you can see to we pass to call back function in forEach HOF and log to object with index no.


now let's write to this in ES6 with fat arrow

peopleData.forEach((item, index)=>{
return console.log(index, '_', item)
})

now you can write to this in a single line code

peopleData.forEach(item=>{console.log(item)})

2. filter in javascript means you can filter something in array of collection.
now let's check the code and how to used filter method in javascript and if we have no filer then used to normal for loop .

const filterData = []
for(let i=0; i< peopleData.length; i++){
if(peopleData[i].category === 'Gadget'){
filterData.push(peopleData[i])
}
}
console.log(filterData);


in this above code we used to normal loop in javascript and filter to data base on category.

let's we used to filter method and check to result.
const filterData = peopleData.filter(function(item){
return item.category === 'Gadget'
})


console.log('filterData', filterData);


now here we can used to ES5 Regular function and result is coming same.
Now if we used to ES6 fat arrow function then let's check .
const filterDataArrowFun = peopleData.filter(item=>item.category === 'Gadget')


console.log('filterDataArrowFun', filterDataArrowFun)

now you can see to same result print in console and we used to here fat arrow function with in single line for filter method.

3. map method used to javascript map method you can manipulate the data base on the requirements.
like this if we required a node extra with dicountPrice in total price of 10% then we used to map method and we also used to normal loop.
let's check with normal loop / ES5 function and ES6 fat arrow function in below code

const updatedData = []
for(let i=0; i < peopleData.length; i++){
peopleData[i].discountPrice = peopleData[i].price / 100 *10;
updatedData.push(peopleData[i]);
}
console.log('updatedData', updatedData);


do with in ES5 Regular function.

const updatedData = peopleData.map(function(item){
item.dicountPrice = item.price / 100 * 10
return item
})


do with in ES6 fat arrow function.
const updatedData = peopleData.map((item)=>{
item.dicountPrice = item.price / 100 * 10
return item
})

console.log('updatedData es6 function ', updatedData)


now you can see above code we get same result of if we used normal loop / ES5 Regular function and ES6 fat arrow function.

4. sort method is used to sorting data base on two element .
now let's check the code of sort method .


const sortItem = peopleData.sort(function(a,b){
return b.age - a.age
})
console.log('sortItem', sortItem)
const sortItem_2 = peopleData.sort((a,b)=> a.price - b.price)
console.log('sortItem_2', sortItem_2)


we used to first Descending order the data in base on age we apply to age sorting in ES5 Regular function.
and in second method we used to ES6 function and sorting the data base on price in Ascending order in single line code.


5. Reduce method now check this method in javascript . now check first we used to normal loop in javascript.

let ageDataTotal =0
for(let i= 0; i < ageData.length; i++){
ageDataTotal = ageDataTotal + ageData[i]
}
console.log('ageDataTotal', ageDataTotal); // ageDataTotal 269


now check with Reduce method in ES6 fat arrow function and get the total sum of age in the below code.



const ageTotalSum = ageData.reduce((totalSumofAge, current)=>totalSumofAge + current, 0)

console.log('ageTotalSum', ageTotalSum); // ageTotalSum 269

now check with Reduce method in ES6 fat arrow function and get the total sum of productData price in the below code.

const prodctTotalValue = peopleData.reduce((totalSum, current)=>totalSum + current.price, 0)

console.log('prodctTotalValue', prodctTotalValue) // productTotalValue 136500

if you get more internist thing learn in javascript then go to my youtube channel and check to some more interesting video:- https://www.youtube.com/c/AzadMalikRohit

Friday, March 4, 2022

रामधारी सिंह दिनकर: याचना नहीं, अब रण होगा...

वर्षों तक वन में घूम-घूम,
बाधा-विघ्नों को चूम-चूम,
सह धूप-घाम, पानी-पत्थर,
पांडव आये कुछ और निखर।
सौभाग्य न सब दिन सोता है,
देखें, आगे क्या होता है।

मैत्री की राह बताने को,
सबको सुमार्ग पर लाने को,
दुर्योधन को समझाने को,
भीषण विध्वंस बचाने को,
भगवान् हस्तिनापुर आये,
पांडव का संदेशा लाये।

कृष्ण की चेतावनी

‘दो न्याय अगर तो आधा दो,
पर, इसमें भी यदि बाधा हो,
तो दे दो केवल पाँच ग्राम,
रक्खो अपनी धरती तमाम।
हम वहीं खुशी से खायेंगे,
परिजन पर असि न उठायेंगे!


दुर्योधन वह भी दे ना सका,
आशीष समाज की ले न सका,
उलटे, हरि को बाँधने चला,
जो था असाध्य, साधने चला।
जब नाश मनुज पर छाता है,
पहले विवेक मर जाता है।

कृष्ण की चेतावनी

हरि ने भीषण हुंकार किया,
अपना स्वरूप-विस्तार किया,
डगमग-डगमग दिग्गज डोले,
भगवान् कुपित होकर बोले-
‘जंजीर बढ़ा कर साध मुझे,
हाँ, हाँ दुर्योधन! बाँध मुझे।

यह देख, गगन मुझमें लय है,
यह देख, पवन मुझमें लय है,
मुझमें विलीन झंकार सकल,
मुझमें लय है संसार सकल।
अमरत्व फूलता है मुझमें,
संहार झूलता है मुझमें।

कृष्ण की चेतावनी

‘उदयाचल मेरा दीप्त भाल,
भूमंडल वक्षस्थल विशाल,
भुज परिधि-बन्ध को घेरे हैं,
मैनाक-मेरु पग मेरे हैं।
दिपते जो ग्रह नक्षत्र निकर,
सब हैं मेरे मुख के अन्दर।


‘दृग हों तो दृश्य अकाण्ड देख,
मुझमें सारा ब्रह्माण्ड देख,
चर-अचर जीव, जग, क्षर-अक्षर,
नश्वर मनुष्य सुरजाति अमर।
शत कोटि सूर्य, शत कोटि चन्द्र,
शत कोटि सरित, सर, सिन्धु मन्द्र।

कृष्ण की चेतावनी

‘शत कोटि विष्णु, ब्रह्मा, महेश,
शत कोटि विष्णु जलपति, धनेश,
शत कोटि रुद्र, शत कोटि काल,
शत कोटि दण्डधर लोकपाल।
जञ्जीर बढ़ाकर साध इन्हें,
हाँ-हाँ दुर्योधन! बाँध इन्हें।

‘भूलोक, अतल, पाताल देख,
गत और अनागत काल देख,
यह देख जगत का आदि-सृजन,
यह देख, महाभारत का रण,
मृतकों से पटी हुई भू है,
पहचान, इसमें कहाँ तू है।

कृष्ण की चेतावनी

‘अम्बर में कुन्तल-जाल देख,
पद के नीचे पाताल देख,
मुट्ठी में तीनों काल देख,
मेरा स्वरूप विकराल देख।
सब जन्म मुझी से पाते हैं,
फिर लौट मुझी में आते हैं।


‘जिह्वा से कढ़ती ज्वाल सघन,
साँसों में पाता जन्म पवन,
पड़ जाती मेरी दृष्टि जिधर,
हँसने लगती है सृष्टि उधर!
मैं जभी मूँदता हूँ लोचन,
छा जाता चारों ओर मरण।

कृष्ण की चेतावनी

‘बाँधने मुझे तो आया है,
जंजीर बड़ी क्या लाया है?
यदि मुझे बाँधना चाहे मन,
पहले तो बाँध अनन्त गगन।
सूने को साध न सकता है,
वह मुझे बाँध कब सकता है?


‘हित-वचन नहीं तूने माना,
मैत्री का मूल्य न पहचाना,
तो ले, मैं भी अब जाता हूँ,
अन्तिम संकल्प सुनाता हूँ।
याचना नहीं, अब रण होगा,
जीवन-जय या कि मरण होगा।

कृष्ण की चेतावनी

‘टकरायेंगे नक्षत्र-निकर,
बरसेगी भू पर वह्नि प्रखर,
फण शेषनाग का डोलेगा,
विकराल काल मुँह खोलेगा।
दुर्योधन! रण ऐसा होगा।
फिर कभी नहीं जैसा होगा।


‘भाई पर भाई टूटेंगे,
विष-बाण बूँद-से छूटेंगे,
वायस-श्रृगाल सुख लूटेंगे,
सौभाग्य मनुज के फूटेंगे।
आखिर तू भूशायी होगा,
हिंसा का पर, दायी होगा।’

कृष्ण की चेतावनी

थी सभा सन्न, सब लोग डरे,
चुप थे या थे बेहोश पड़े।
केवल दो नर ना अघाते थे,
धृतराष्ट्र-विदुर सुख पाते थे।
कर जोड़ खड़े प्रमुदित,
निर्भय, दोनों पुकारते थे ‘जय-जय’!