<script type="text/javascript" src="js/jsExternal.js"></script>
<link rel="stylesheet" type="text/css" href="test.css">
HttpClient client = HttpClient.newHttpClient();
HttpRequest request = HttpRequest.newBuilder().uri(URI.create("http://openjdk.java.net/")).build();
client.sendAsync(request, BodyHandlers.ofString()).thenApply(HttpResponse::body).thenAccept(System.out::println).join();
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="Zoo.xsl"?>
From LifeCycleA constructor
LifeCycleA.js:17 From LifeCycleA getDerivedStateFromProps()
LifeCycleA.js:26 From LifeCycleA render()
LifeCycleB.js:10 From LifeCycleB constructor
LifeCycleB.js:16 From LifeCycleB getDerivedStateFromProps()
LifeCycleB.js:25 From LifeCycleB render()
LifeCycleB.js:21 LifeCycleB component did mount
LifeCycleA.js:22 LifeCycleA component did mount
http://localhost:8095/emp/controller/getDetails
useState:
---------
const initObj={state variables}
const[newObj,handler] = useState(initObj)
<!-- updated State - newObj
name of the state change handler - handler -->
useEffect
---------
useEffect(effect,[])- mounting only
useEffect(effect)- mounting + any/all of state update
useEffect(effect,[newEmpobj])- mounting + updates on emp obj
useEffect(effect,[newAssetobj])- mounting + updates on asset obj