1.0.2 • Published 1 year ago
@mr.hacker/name-library v1.0.2
@mr.hacker/name-library
A simple React component and utility function to display the name "Asad".
Installation
Install the package using npm:
npm install @mr.hacker/name-libraryUsage
Import and use the React component or utility function in your project.
import React from 'react';
import MyNameComponent, { getMyName } from '@mr.hacker/name-library';
function App() {
return (
<div>
{/* Using the React component */}
<MyNameComponent />
{/* Using the utility function */}
<p>Name from function: {getMyName()}</p>
</div>
);
}
export default App;API
MyNameComponent
A React functional component that displays the name "Asad" inside an <h1> tag.
getMyName
A utility function that returns the string "Asad".
License
This project is licensed under the MIT License. See the LICENSE file for details.
⭐️ Feel free to contribute or raise issues if you find any! Let’s build something amazing together! 🚀