Code Snippets

How to update ohmyzsh from the terminal
Learn the command to update ohmyzsh from the terminal
16 Apr 2022

How to get mime type in Laravel 9
Learn how to get a mime type of a file in Laravel 9 the easy way using Storage facade
16 Apr 2022

4 Ways to Create React Components
Learn the 4 ways to create react components. by using the following codes
11 Apr 2022

React Redux In A Nutshell
Get to know the full overview of React Redux, Redux Toolkit and Redux Thunk
26 Mar 2022

How to Push Into State Array in ReactJS
Learn how to push into state array in React JS the easy way
22 Mar 2022

How to Bind Event Handlers in React JS Component by Avoiding Constructor Declaration
Learn how to bind event handlers in React JS component constructer the easy way
22 Mar 2022

How to Write Conditional Statements in JSX
Learn how to write or define conditional statements in JSX using short circuit evaluation and early returns
22 Mar 2022

How to Add Dynamic Generated Classes in Tailwind CSS Without Purge
Learn how to add dynamically generated classes in Tailwind CSS and whitelist it to prevent from being purge
17 Feb 2022

How to Watch Alpine.js Store Value
Learn how to watch Alpine.js store value
15 Feb 2022

How to Access Next.js 2 Route Params
Get to know how to easily access 2 route params in Next.js to get the paramets and perform an action
12 Feb 2022

How to add a robots.txt file to a Next.js project
Get to know how to add robots.txt file to a Next.js project the easy way for beginners
12 Feb 2022

How to Create Custom Error Pages for Next Js
Learn how to create and customize custom error pages for Next.js to show an intuitive error page that's more user friendly with your design
12 Feb 2022