California-Oregon Itinerary

Day 1: * Start from Angel island. To reach there you have to take Ferry ride which can be taken from Point Tiburon, make sure to reserve the spot in ferry a night before or in advance. * Ideal time to go there is around 10:30 am and can do cycling…

Why We Sleep by Matthew Walker: Summary & Notes

Summary Only book I ever read which talks about importance of sleep. Definitely worth a read for better understanding why we sleep and for those who have hard time sleeping. After reading this book you will be convinced how sleep plays major role in our day to day life and…

Simple react-hook-form with Material UI

In last post I mentioned some differences between redux-form and react-hook-form. In this post I will show you how to create simple form with Input name and email. First, we will declare useForm() const { register, handleSubmit, errors } = useForm(); and then create onSubmit function to handle form submit which will just…

My experience with React-hook-form and redux-form

In my recent project, I had to use forms at multiple pages and started with redux-form which is very well built with nice documentation. After a month I came across React-hook-form and it seems way simpler to use, particularly validations. Few things which catch my attention about React-hook-form were: * Less…

My workspace setup (2020 edition)

IDE * I mainly use VS code [https://code.visualstudio.com/]. Here is the screenshot of how my IDE looks like. * Current theme I am using is ReUI [https://marketplace.visualstudio.com/items?itemName=barrsan.reui]. * Few extensions which make my life easy. * Beautify [https://marketplace.visualstudio.com/items?itemName=HookyQR.…

Welcome!

Hello and welcome to my first blog. My name is Varun Yadav as you already know by the name of domain. My goal is to write more about technology which I work on daily basis and share knowledge on those topics. What you will be seeing more of in my…