@prasanjeetd/react-hello-world-component
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

React Hello World Component

A simple React component that displays a greeting message.

Installation

npm install @your-npm-username/react-hello-world-component

Usage

import React from 'react';
import { HelloWorld } from '@your-npm-username/react-hello-world-component';

function App() {
  return (
    <div className="app">
      <HelloWorld name="World" />
    </div>
  );
}

export default App;

Props

Prop Type Description
name string The name to display in the greeting

Development

  1. Clone the repository
  2. Install dependencies: npm install
  3. Build the package: npm run build

License

MIT

Package Sidebar

Install

npm i @prasanjeetd/react-hello-world-component

Weekly Downloads

5

Version

1.0.0

License

MIT

Unpacked Size

5.91 kB

Total Files

10

Last publish

Collaborators

  • prasanjeetd