Answered step by step
Verified Expert Solution
Link Copied!

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 "../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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions