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?
Mar 21 in Node-js by Nidhi
• 13,180 points
78 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 Mar 21 by Dua

Related Questions In Node-js

0 votes
1 answer
0 votes
0 answers

How to create a responsive navbar that collapses on smaller screens in Bootstrap 3?

With the help of proper code example ...READ MORE

13 hours ago in Node-js by Nidhi
• 13,180 points
12 views
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,437 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,963 views
0 votes
1 answer
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 Mar 21 in Node-js by Anvi
46 views
0 votes
1 answer
0 votes
1 answer
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