30 seconds of code provides a curated collection of short code snippets for all your development needs. Our collection spans many topics, ranging from simple coding problems to theoretical concepts and development techniques.
Creates a horizontally scrollable image gallery.
CSS, Visual · May 5, 2022
Creates a horizontally scrollable image gallery.
CSS, Visual · May 1, 2022
A doubly linked list is a linear data structure where each element points both to the next and the previous one.
JavaScript, Class · Aug 12, 2021
A linked list is a linear data structure where each element points to the next.
JavaScript, Class · Aug 8, 2021
Creates a styled radio button with animation on state change.
CSS, Visual · Nov 16, 2022
A graph is a data structure consisting of a set of vertices connected by a set of edges.
JavaScript, Class · Aug 17, 2021
Learn how you can leverage the Proxy object to use a JavaScript object the same way as you would use a regular array.
JavaScript, Object · Sep 27, 2021
Renders a checkbox list that uses a callback function to pass its selected value/values to the parent component.
React, Components · Oct 13, 2021
Take a deeper dive into React's rendering process and understand the basics behind the popular JavaScript framework.
React, Render · Jun 12, 2021
Testing React components that update asynchronously is pretty common. Learn how to deal with common issues and speed up your testing.
React, Testing · Nov 7, 2021
Discover the inner workings of JavaScript arrays and learn about the different ways to initialize them.
JavaScript, Array · Jun 18, 2023