h1{
color: red;
}
.class-one{
color: green;
}
#id-one{
color: blue;
}
h2{
color: yellowgreen;
}
h3{
color: red;
}
h4{
color: violet;
}
table{
color: blueviolet;
border: tomato;
width: 300px;
height: 200px;
}
color: red;
}
.class-one{
color: green;
}
#id-one{
color: blue;
}
h2{
color: yellowgreen;
}
h3{
color: red;
}
h4{
color: violet;
}
table{
color: blueviolet;
border: tomato;
width: 300px;
height: 200px;
}
import { useState} from "react";
import "./Comp1.css";
const Comp1 =()=>{
const [str] = useState(`Hello`);
const [num] =useState(100);
const [bool] = useState(true);
const [obj]= useState({"key1":"hello_1....","key2":"hello_2...","key3":"hello_3.."});
const[arr] = useState([10,20,30,40,50]);
const[arr1]= useState([`hello_1`,`hello_2`,`hello_3`,`hello_4`,`hello_5`]);
const [arr2] =useState([100,200,300,400,500]);
const [arr3]= useState([`reactJs`,`MongoDb`,`NodeJs`]);
const [arr4] = useState([100,`hello1`,200,`hello2`]);
const [products] = useState([
{"p_id":111,"p_name":"p_one","p_cost":10000},
{"p_id":222,"p_name":"p_two","p_cost":20000},
{"p_id":333,"p_name":"p_three","p_cost":30000},
{"p_id":444,"p_name":"p_four","p_cost":40000},
{"p_id":555,"p_name":"p_five","p_cost":50000}
]);
const [Employee] = useState([
{"e_id":111,"e_name":"e_one","e_sal":10000},
{"e_id":222,"e_name":"e_two","e_sal":20000},
{"e_id":333,"e_name":"e_three","e_sal":30000},
{"e_id":444,"e_name":"e_four","e_sal":40000},
{"e_id":555,"e_name":"e_five","e_sal":50000}
]);
return(
<>
<h1>{str}</h1>
<h1 className="class-one">{num}</h1>
<h1 id="id-one">{JSON.stringify(bool)}</h1>
<h1>{obj.key1}{obj.key2}{obj.key3}</h1>
{arr.map((Element,index)=>{
return(
<h1 key={index}>{Element}....{index}</h1>
)
})
}
{arr1.map((Element,index)=>{
return(
<h2 key={index}>{Element}....{index}</h2>
)
})
}
{arr2.map((Element,index)=>{
return(
<h3 key={index}>{Element}....{index}</h3>
)
})
}
{arr3.map((Element,index)=>{
return(
<h4 key={index}>{Element}....{index}</h4>
)
})
}
{arr4.map((Element,index)=>{
return(
<h5 key={index}>{Element}....{index}</h5>
)
})
}
<table border={1}>
<tr>
<th>p_id</th>
<th>p_name</th>
<th>p_cost</th>
</tr>
{products.map((element,index)=>{
return(
<tr key={index}>
<td>{element.p_id}</td>
<td>{element.p_name}</td>
<td>{element.p_cost}</td>
</tr>
)
})
}
</table>
<table border={1}>
<tr>
<th>e_id</th>
<th>e_name</th>
<th>e_sal</th>
</tr>
{Employee.map((element,index)=>{
return(
<tr key={index}>
<td>{element.e_id}</td>
<td>{element.e_name}</td>
<td>{element.e_sal}</td>
</tr>
)
})
}
</table>
</>
)
}
export default Comp1;
import "./Comp1.css";
const Comp1 =()=>{
const [str] = useState(`Hello`);
const [num] =useState(100);
const [bool] = useState(true);
const [obj]= useState({"key1":"hello_1....","key2":"hello_2...","key3":"hello_3.."});
const[arr] = useState([10,20,30,40,50]);
const[arr1]= useState([`hello_1`,`hello_2`,`hello_3`,`hello_4`,`hello_5`]);
const [arr2] =useState([100,200,300,400,500]);
const [arr3]= useState([`reactJs`,`MongoDb`,`NodeJs`]);
const [arr4] = useState([100,`hello1`,200,`hello2`]);
const [products] = useState([
{"p_id":111,"p_name":"p_one","p_cost":10000},
{"p_id":222,"p_name":"p_two","p_cost":20000},
{"p_id":333,"p_name":"p_three","p_cost":30000},
{"p_id":444,"p_name":"p_four","p_cost":40000},
{"p_id":555,"p_name":"p_five","p_cost":50000}
]);
const [Employee] = useState([
{"e_id":111,"e_name":"e_one","e_sal":10000},
{"e_id":222,"e_name":"e_two","e_sal":20000},
{"e_id":333,"e_name":"e_three","e_sal":30000},
{"e_id":444,"e_name":"e_four","e_sal":40000},
{"e_id":555,"e_name":"e_five","e_sal":50000}
]);
return(
<>
<h1>{str}</h1>
<h1 className="class-one">{num}</h1>
<h1 id="id-one">{JSON.stringify(bool)}</h1>
<h1>{obj.key1}{obj.key2}{obj.key3}</h1>
{arr.map((Element,index)=>{
return(
<h1 key={index}>{Element}....{index}</h1>
)
})
}
{arr1.map((Element,index)=>{
return(
<h2 key={index}>{Element}....{index}</h2>
)
})
}
{arr2.map((Element,index)=>{
return(
<h3 key={index}>{Element}....{index}</h3>
)
})
}
{arr3.map((Element,index)=>{
return(
<h4 key={index}>{Element}....{index}</h4>
)
})
}
{arr4.map((Element,index)=>{
return(
<h5 key={index}>{Element}....{index}</h5>
)
})
}
<table border={1}>
<tr>
<th>p_id</th>
<th>p_name</th>
<th>p_cost</th>
</tr>
{products.map((element,index)=>{
return(
<tr key={index}>
<td>{element.p_id}</td>
<td>{element.p_name}</td>
<td>{element.p_cost}</td>
</tr>
)
})
}
</table>
<table border={1}>
<tr>
<th>e_id</th>
<th>e_name</th>
<th>e_sal</th>
</tr>
{Employee.map((element,index)=>{
return(
<tr key={index}>
<td>{element.e_id}</td>
<td>{element.e_name}</td>
<td>{element.e_sal}</td>
</tr>
)
})
}
</table>
</>
)
}
export default Comp1;
e_id e_name e_sal
111 e_one 10000
222 e_two 20000
333 e_three 30000
444 e_four 40000
555 e_five 50000
111 e_one 10000
222 e_two 20000
333 e_three 30000
444 e_four 40000
555 e_five 50000
import {useState} from "react";
import Child from "./Child";
const Parent = ()=>{
const [str]= useState(`hello`);
const [num]= useState(100);
const [bool]= useState(true);
return(
<>
<Child key1= {str} key2 ={num} key3 ={bool}></Child>
</>
)
}
export default Parent;
import Child from "./Child";
const Parent = ()=>{
const [str]= useState(`hello`);
const [num]= useState(100);
const [bool]= useState(true);
return(
<>
<Child key1= {str} key2 ={num} key3 ={bool}></Child>
</>
)
}
export default Parent;
const Child =(props)=>{
return(
<>
<h1>{props.key1}</h1>
<h2>{props.key2}</h2>
<h3>{JSON.stringify(props.key3)}</h3>
</>
)
}
export default Child;
return(
<>
<h1>{props.key1}</h1>
<h2>{props.key2}</h2>
<h3>{JSON.stringify(props.key3)}</h3>
</>
)
}
export default Child;
👍1
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import Parent from "./Parent";
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<Parent />
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import Parent from "./Parent";
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
<React.StrictMode>
<Parent />
</React.StrictMode>
);
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals();
create-react-app.dev
Measuring Performance | Create React App
By default, Create React App includes a performance relayer that allows you to measure and analyze
Pass String , name ,Boolean ,json object , number array , String array , Array of object from parent component to child component
Pass above data from parent component to child component and child component to sub child component
Java Hyd Team
Photo from Sambasivarao Pendela
Everyone must join this tomorrow 😊
Don't miss to join
Don't miss to join
Flowcharts
Backtracking
Variables & Data Types in Java
Time & Space Complexity
Operators
ArrayLists
if-else Statements
Linked Lists
Flow Control (Loops)
Stacks
Patterns
Queues
Functions & Methods
Greedy Algorithms
Arrays
Binary Trees
Sorting Algorithms
Binary Search Trees
2D Arrays
Heaps/Priority Queues
Strings
Hashing
Bit Manipulation
Tries
OOPs
Graphs
Recursion
Dynamic Programming
Divide & Conquer
Segment Trees
Backtracking
Variables & Data Types in Java
Time & Space Complexity
Operators
ArrayLists
if-else Statements
Linked Lists
Flow Control (Loops)
Stacks
Patterns
Queues
Functions & Methods
Greedy Algorithms
Arrays
Binary Trees
Sorting Algorithms
Binary Search Trees
2D Arrays
Heaps/Priority Queues
Strings
Hashing
Bit Manipulation
Tries
OOPs
Graphs
Recursion
Dynamic Programming
Divide & Conquer
Segment Trees
Still waiting for that dream job to come along?
The process of applying for jobs can seem long and arduous - which is why many job seekers become despondent quickly.
This is particularly true for those still employed, trying to find a better opportunity during snatched lunch breaks and late evenings.
“Work smarter, not harder” - you’ve heard this before, right?
That’s exactly what you need to do if you’re searching for a new job.
If you’re serious about landing something amazing, you need to work on better habits to make your job hunting more effective so that every application truly counts.
And spending hours on end isn’t necessarily going to get you more results, unfortunately.
Here are three tips:
- Improve your communication skills. There is no going around networking to land the job you want in this day and age. People will most likely hire people that give them a sense of reassurance they can do the job. And when people vouch for them, it makes them more secure.
- Time management. With a full-time job and maybe a family, you need to make sure that you’re managing your time effectively to block time in your schedule searching for new opportunities.
- Distraction-free zones. The same way you manage your urgent projects at work, set distraction-free times during your job search time so that you can focus fully on the tasks at hand - finding a job. Make a coffee, set a timer for one hour, put your phone away, and spend the next 60 minutes searching for something that excites you.
I hope that helps you!
Your coach,
The process of applying for jobs can seem long and arduous - which is why many job seekers become despondent quickly.
This is particularly true for those still employed, trying to find a better opportunity during snatched lunch breaks and late evenings.
“Work smarter, not harder” - you’ve heard this before, right?
That’s exactly what you need to do if you’re searching for a new job.
If you’re serious about landing something amazing, you need to work on better habits to make your job hunting more effective so that every application truly counts.
And spending hours on end isn’t necessarily going to get you more results, unfortunately.
Here are three tips:
- Improve your communication skills. There is no going around networking to land the job you want in this day and age. People will most likely hire people that give them a sense of reassurance they can do the job. And when people vouch for them, it makes them more secure.
- Time management. With a full-time job and maybe a family, you need to make sure that you’re managing your time effectively to block time in your schedule searching for new opportunities.
- Distraction-free zones. The same way you manage your urgent projects at work, set distraction-free times during your job search time so that you can focus fully on the tasks at hand - finding a job. Make a coffee, set a timer for one hour, put your phone away, and spend the next 60 minutes searching for something that excites you.
I hope that helps you!
Your coach,
👍2