growl-jaden-digital
v0.1.0
Published
### Clone this repo and run it: ```bash git clone [email protected]:asiraky/growl-task.git && cd growl-task && yarn && yarn start ```
Downloads
3
Readme
Installation
Clone this repo and run it:
git clone [email protected]:asiraky/growl-task.git && cd growl-task && yarn && yarn start
There are 3 steps to this task:
- Make a change to the hook
- Convert the component into an
npm
installable library - Send us the details
NOTE: Step 2 can be as simple or complex as you like. While you'll get extra points for converting the code into a re-useable library, we will accept the solution in any format where we can see how you've solved the problem in step 1
The Challenge
Make a change to the hook
Add an option to the useGrowl
hook that dismisses the growl notification after a certain timeout, with a default of 3 seconds.
Turn the solution into a component library
Convert your solution into a re-usable library. You will need to create a new repo to achieve this, and move the completed useGrowl
hook and component + styling into this new project. You are free to use any packages or frameworks to assist you in doing this e.g. create-react-library
. Note: you don't need to actually upload the completed code to npm, just set the project up as a library.
NOTE: If you run out of time converting the component into a re-useable library, you should still upload your work to github for us to see.
Send us the details
Upload the new project to github (as a public repository) and email the details to [email protected]
.