How to create a Functional Component that returns a greeting

0 votes
With the help of code can you explain to me How to create a Functional Component that returns a greeting?
11 hours ago in Node-js by Nidhi
• 12,380 points
15 views

1 answer to this question.

0 votes

To create a Functional Component that returns a greeting:

import React from 'react';

const Greeting = () => {

  return <h1>Hello, welcome!</h1>;

};

export default Greeting;

answered 10 hours ago by Dua

Related Questions In Node-js

0 votes
0 answers

How to write an action creator that returns a function using redux-thunk?

With the help of code can you ...READ MORE

4 days ago in Node-js by Nidhi
• 12,380 points
48 views
0 votes
0 answers
0 votes
1 answer

How to create a directory if it doesn't exist using Node.js?

Hello @kartik, Try: var fs = require('fs'); var dir = ...READ MORE

answered Jul 9, 2020 in Node-js by Niroj
• 82,840 points
6,425 views
0 votes
1 answer

How do I add a custom script to my package.json file that runs a javascript file?

run npm run script1 it works for me READ MORE

answered Jan 10, 2023 in Node-js by Harisudarsan

edited Mar 5 41,919 views
0 votes
1 answer

How to use interceptors to modify HTTP requests and responses in Angular?

In Angular, interceptors are used to modify ...READ MORE

answered 10 hours ago in Node-js by Anvi
13 views
0 votes
1 answer

How to unsubscribe from an observable to prevent memory leaks in Angular?

In Angular, unsubscribe from observables to prevent ...READ MORE

answered 10 hours ago in Node-js by Anvi
11 views
0 votes
1 answer
0 votes
1 answer

How to create a simple React Element displaying "Hello, World!"?

You can create a simple React element ...READ MORE

answered 10 hours ago in Node-js by Anvi
11 views
0 votes
1 answer

How to define a Class Component that renders a welcome message?

To define a Class Component that renders ...READ MORE

answered 10 hours ago in Node-js by Dua
18 views
0 votes
1 answer
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP