Ip 6
Ip 6
Hella fom Parent Component !
“Itiv> X ) er fat, VarentComponent; ~~6-10 WF _ internet Programming (MU) Reacts ‘The output ofthis code is as follows prop from parent component Hello from Parent Component ! ‘After creating the above Hello World Application, ets write some code for the output shown. ‘Step1: Create a folder as stateDemo inside src folder. And Create two files as Counter js and Countercss inside stateDemo. Step 2: Write code in Counters as follows: import React, { useState } from "react"; import "/Counter.ess", fupetion Counter() { setCounter(counter + 1); ‘ Jet decrementCounter = { setCounter(counter - 1); hk retum ( ‘