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 "../generic/WelcomeMessage";
class Disney extends React.Component {
constructor(props){
super(props);
console.log("Disney");
this.state ={
localMessage: "I am Disney",
// message: (
// Count of friends {this.props.friend.friends.length}
//),
};
}
getMessage =()=>{
return Count of Friends {this.props.friend.friends.length};
};
render(){
this.props.showGreeting(this.state.localMessage);
return (

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!