Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started