this package is my simple implementation of an arrow, which hides/shows content when clicked. To use this package first install it
npm i simple-dropdown-arrow
install webpack
npm i --save-dev webpack-cli
require this package in your project
const { arrow } = require('simple-dropdown-arrow');
create the arrow, as an argument for the function pass the HTML element you want to be shown/hidden
const myArrow = arrow.createArrow(myHTMLElement)
the function returns the arrow as an HTML element. serve your project with webpack
npx webpack --serve open