Posts

Showing posts with the label Class Component

What is sql in Deep(Structured query language). Sql Tutorial -1

What is sql in Deep(Structured query language) Oracle was the first company to release a product that used the English-based Structured Query Language, or SQL. This language allows end users to extract information themselves, without using a systems group for every little report. Oracle’s query language has structure, just as English or any other language has structure. It has rules of grammar and syntax, but they are basically the normal rules of careful English speech and can be readily understood. What is SQL QUERIES It is known as data base language. It is used to communicate with any database. We can use this language constructs to write SQL QUERIES. What is SQL* PLUS SQL * PLUS is a default client tool and acts as an interface between client and database. What is SQL It is a collection of pre defined commands and constructs with syntactical rules

Export Import component in react

Image
 Export Import component in react See installation and configuration in my other blog Now Create a file into a public folder or anywhere into Root directory inside your project folder Create to directory into root directory         mkdir public           mkdir src Create two new into public folder index.html index.js Create two new file into src folder main.js  item.js Copy and paste code into index.html <!DOCTYPE html> <html> <head> <title>React - demo</title> </head> <body> <div id="root"></div> <script src="index.js"></script> </body> </html> Now into item.js import React from 'react'; class Item extends React.Component{ render(){ return( <div> Hello Item </div> ); } } export default Item; // you must have to make component exportable Now into main.js import React from 'react&#

React Component || Functional Component || Class Component || composing function component

What is Component? React Components that render html elements and tags Types of Component Functional Component Class Component Functional Component Render html element through function Class Component Render html element through class Composing function component Means call a function component into another function component Functional Component Example Now again make a directory inside root directory        mkdir public (you can take name as you want)        mkdir src (you can take name what ever you want you want) inside public folder create two new file index.html index.js inside src folder create one new file  main.js ( this is file where react app execution is start. you can take name what ever you want). app.js or main.js function Item(){ return(<h1>Hello from Item</h1>) } function Welcome(){ return(<div> <h1>Hello React</h1> <Item />  </div>); } const element = <Welcome /> ReactDOM.render(e

React Component || Functional Component || Class Component

What is Component? React Components that render html elements and tags Types of Component Functional Component Class Component Functional Component Render html element through function Class Component Render html element through class Functional Component Example Now again make a directory inside root directory        mkdir public (you can take name as you want)        mkdir src (you can take name what ever you want you want) inside public folder create two new file index.html index.js inside src folder create one new file  main.js ( this is file where react app execution is start. you can take name what ever you want). app.js or main.js function Welcome(){ return(<h1>Hello React</h1>); } const element = <Welcome /> ReactDOM.render(element, document.getElementById('root')); in index.html <!DOCTYPE html> <html> <head> <title></title> <script crossorigin src="https://unpkg.com/