React Unit Testing using @testing-library/reactExample component code: import {useState} from 'react'; const Text = ({text}) => { const [state, setState]= useState(0); const add = () => { setState(state+1) }; return ( <div> <h1>Hello World</h1> ...Jan 23, 2024 · 1 min readerba-blognote.com
Setup React Project with Gitlab CI/CDReact is one popular of javascript framework for frontend. For me, React is a good choice framework for small projects or enterprise projects. Many libraries are available for React. I use React for my onsite job and some freelance jobs. Gitlab is a ...Mar 3, 2023 · 2 min readerba-blognote.com
Simple Encryption and Decryption in Javascript using CryptoJsThis method using CryptoJs library. Install CryptoJs in tour project npm install crypto-js Create function for encrypt // import CryptoJS from 'crypto-js' export const simpleEncrypt = (textWillEncrypt, strKey) => { // textWillEncrypt is s...Feb 14, 2023 · 1 min readerba-blognote.com