Laravel Notes Get link Facebook X Pinterest Email Other Apps - August 06, 2018 C:\users\krishandev\blog\php artisan serve php artisan make:auth http://localhost/phpmyadmin Get link Facebook X Pinterest Email Other Apps Comments
Uncontrolled Component - React Js - April 01, 2023 App.js: import React , { useRef } from "react" ; import './App.css' function App () { let inputRef = useRef ( null ) let inputRef2 = useRef ( null ) function formHandle ( e ) { e . preventDefault () console . warn ( "Value of Field 1 :" , inputRef . current . value ) console . warn ( "Value of Text Field 2" , inputRef2 . current . value ) let input3 = document . getElementById ( 'input3' ). value console . warn ( "Input field 3 value : " , input3 ) } return ( <div className = "App" > <h1> UnControlled Component </h1> <form onSubmit = { formHandle } > <input type = "text" ref = { inputRef } /> <br/><br/> <input type = "text" ref = { inputRef2 } /><br/> <br/> <input type = "text" id = "input3" /><... Read more
useEffect with Condition - React Js - March 28, 2023 App.js: import React , { useEffect , useState } from "react" ; import './App.css' import Student from "./Components/Student" ; function App () { const [ data , setData ]= useState ( 10 ) const [ count , setCount ]= useState ( 100 ) return ( <div className = "App" > < Student count = { count } data = { data } /> <button onClick = { () => setCount ( count + 1 ) } > Update Count </button> <button onClick = { () => setData ( data + 1 ) } > Update Data </button> </div> ) } export default App ; ---------------------- Student.js: import React ,{ useEffect } from "react" ; function Student ( props ) { useEffect (() => { alert ( "Count is :" + props . count ) }, [ props . count ]) return ( ... Read more
Comments
Post a Comment