Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

DaniDevOfficial/WishPackage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wish Package 🤬🤬🤬🔥🔥🔥🥱🥱🥱😣

Wish Package is a simple school exercise on how react packages work. It is just a button that makes a sound when pressed.

Installation

You can install Wish Package via npm. Make sure you have React installed in your project.

npm

npm install wish-packagev2

Or you can also install it from the local version with the path

npm install file:path/to/WishPackage

Usage

import React from 'react';
import { WishPackage } from 'wish-packagev2';

function App() {
  return (
    <div>
      <WishPackage />
    </div>
  );
}

export default App;

What does it do?

Its just a simple Component that plays a sound after the user Clicked a button.

import React, { useEffect, useState } from 'react';

export function WishPackage() {


    const sound = new Audio('https://firebasestorage.googleapis.com/v0/b/funnysoundswish.appspot.com/o/Sounds%2FUploaded%2FSound.mp3?alt=media&token=4cb9d5b8-d108-4966-b087-28ac9275a81c'); // this sound is loud

    return (
        <div>
            <h1>Wish Package Counter</h1>
            <p>Wish Package Counter</p>
            <button onClick={() => {
                alert('Its loud and now your problem');
                sound.play();
            }}>DOOOO NOOTTT CLICK FOR THE LOVE OF GOD PLEASE 🤬🤬🤬🤬</button>
        </div>
    );
}

Props

Wish Package does not currently accept any props.

License

just use it man (but i wouldnt recoment)

code at: https://github.com/DaniDevOfficial/WishPackage

About

This is a small react package i had to create for a school exercise

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published