🎯
Focusing
Frontend Web Developer | React, Javascript | PHP
- Yogyakarta, Indonesia
-
08:04
(UTC +07:00) - http://bintangmuh.com
- @bintang_muh
Pinned Loading
-
Dark Theme Hooks with Local Storage ...
Dark Theme Hooks with Local Storage for Tailwind css 1import { useEffect, useState } from "react"
23export function useToggleTheme() {
4const [theme, setTheme] = useState('dark')
5 -
Rupiah number formatter
Rupiah number formatter 1export const convertToRupiah = (angka) => {
2var rupiah = '';
3var angkarev = angka.toString().split('').reverse().join('');
4for(var i = 0; i < angkarev.length; i++) if(i%3 == 0) rupiah += angkarev.substr(i,3)+'.';
5return rupiah.split('',rupiah.length-1).reverse().join('');
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.