Skip to content
Discussion options

You must be logged in to vote

To add notifications:
1. Create src/components/Notification.js:
javascript<br>import { motion } from 'framer-motion';<br>const Notification = ({ message }) => (<br> <motion.div initial={{ y: 50 }} animate={{ y: 0 }} className="bg-blue-500 p-2"><br> {message}<br> </motion.div><br>);<br>
2. Add a notification context in src/context/NotificationContext.js.
3. Integrate in src/components/Desktop.js to display notifications.
4. Test with npm run dev.
5. Submit a pull request with documentation in README.md.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by IsmailBinMujeeb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed question Further information is requested
2 participants