1.0.4 • Published 3 years ago
@amitdabade/react-hello v1.0.4
What is this?
A simple react component that prints Hello, {username}!
Installation:
npm i @amitdabade/react-hello --save
Code:
import React from 'react';
import ReactDOM from 'react-dom';
import { Hello } from "@amitdabade/react-hello";
function App() {
return (
<div>
<Hello name="Amit" />
</div>
)
}
ReactDOM.render(<App />, document.getElementById('root'));
Demo:
Options:
name : string (Default: "World")
License:
This project is licensed under the terms of the MIT license.