Question: create a button function in React : import React from react; import WelcomeMessage from . . / generic / WelcomeMessage ; class Disney
create a button function in React : import React from "react";
import WelcomeMessage from genericWelcomeMessage;
class Disney extends React.Component
constructorprops
superprops;
console.logDisney;
this.state
localMessage: "I am Disney",
message:
Count of friends thisprops.friend.friends.length
;
getMessage
return Count of Friends thisprops.friend.friends.length;
;
render
this.props.showGreetingthisstate.localMessage;
return
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
