How To Do Conditional Validation With Formik and Yup
#javascriptFormik and Yup provides a nice easy way to do conditional validation for your React projects.
Formik and Yup provides a nice easy way to do conditional validation for your React projects.
Occasionally you might need to be able to submit a form using a button outside of the form element and luckily it’s simple to do without any JavaScript necessary.
The lang attribute is used to define the language of the text content of an element. It is usually found on the HTML tag, where it is used to define the language of a web page.
You used to have to write your own JavaScript function to get and set query string parameters, but the modern way to do it is to use URLSearchParams
.
Skip links are an important accessibility tool for skipping repeating blocks of content. We will look at why you should use them, example websites and how to style them.
Multiline text truncation is a classic problem, which over the years has been a little bit tricky do if you want an ellipsis at the end. However, now it’s super simple.
JavaScript has some super built in internationalisation features and Intl.NumberFormat
is the one to use for displaying numbers and prices.
NES.css is a super fun Nintendo inspired CSS project, especially if you are a fan of 8bit games.
I am a good person, which means that I always aim to make any website I work on accessible, so I have created a little website to try to help improve website accessibility called Accessibility Reporter.
The Web Share API allows websites to use native device sharing, which is pretty cool.