Use a reducer to implement a fully-typed state machine without breaking a sweat.



Community to discuss stuff all things related to frontend web development. (sharing resources, discussion etc.)
-
Frontend Web Development @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.mlmedium.com Simplify Your React Component’s State With a State MachineLink Actions -
Frontend Web Development @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.mlA declarative frontend framework (like Alpine.js + HTMX) that combines reactivity, state management, and server interactions in one toolkit
github.com GitHub - starfederation/datastar at mainThe hypermedia framework. Contribute to starfederation/datastar development by creating an account on GitHub.
Link Actions -
Frontend Web Development @lemmy.ml mindaslab @lemmy.mlInjee 0.14.0 - What's new?
YouTube Video
Click to view this content.
-
Frontend Web Development @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.mlPreact is a fast 3kB alternative to React with the same API
I started using Preact for a project at work and I'm really liking it. Aside from size and speed, it provides some really nice features not present in React. For example, I find signals are a really nice way to manage shared state between components.
-
Frontend Web Development @lemmy.ml lemmeBe @sh.itjust.worksFor vanilla-extract CSS users: A new ESLint plugin that sorts your CSS properties (alphabetical/concentric/custom)
github.com GitHub - antebudimir/eslint-plugin-vanilla-extract: An ESLint plugin for enforcing best practices in vanilla-extract CSS styles, including CSS property ordering and additional linting rules. Available presets are for alphabetical and concentric CSS ordering. The plugin also supports a custom group ordering option based on groups available in concentric CSS.An ESLint plugin for enforcing best practices in vanilla-extract CSS styles, including CSS property ordering and additional linting rules. Available presets are for alphabetical and concentric CSS ...
Link ActionsFirst off, I've been loving vanilla-extract for the past 10 months. 😊
The only thing I really missed was the ability to sort CSS properties. Since there wasn't an ESLint plugin for that, I decided to create my own.
@antebudimir/eslint-plugin-vanilla-extract offers CSS property ordering (alphabetical, concentric, and custom), auto-fix capabilities, and supports multiple Vanilla Extract APIs.
If anyone wants to give it a shot, you can find more details in the readme. Looking forward to hearing your feedback.
-
Frontend Web Development @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.mlStop Making JavaScript Do Everything
bytes.vadelabs.com Stop Making JavaScript Do Everything – Fast WebApp 101From embarrassing 30s to consistent 90s on Lighthouse - this is the story of performance optimization gone wrong, then right. What started as a typical modern web stack became a journey of unlearning, where an accidental JavaScript-free deploy revealed that sometimes less is more.
Link Actions -
Frontend Web Development @lemmy.ml mindaslab @lemmy.mlGetting started with Injee for JavaScript and ReactJS developers
YouTube Video
Click to view this content.
-
Frontend Web Development @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.mlHow is this Website so fast!?
YouTube Video
Click to view this content.
-
Frontend Web Development @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.mlA React project inspired by windows 95 and some other idea from windows 95's portfolios
github.com GitHub - Yuteoctober/wins95Portfolio: Windows 95 PortfolioWindows 95 Portfolio. Contribute to Yuteoctober/wins95Portfolio development by creating an account on GitHub.
Link Actions -
Frontend Web Development @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.mlIndian web design: cheap, but it works. Here's why
YouTube Video
Click to view this content.
-
Frontend Web Development @lemmy.ml SpongeB0B @programming.devCreate a
clip-path
animated ?cross-posted from: https://programming.dev/post/18448206
Hi,
I would like to use a rectangle that move (left to right) to reveal an
element
/image
like this
The white box shall be the image to display
But I'm already block at my svg animation
svg
<svg viewBox="0 0 265.135 68.642" xmlns="http://www.w3.org/2000/svg"> <g x="-55.790085" y="0.79151762"> <rect style="fill:#ffcc00;stroke-width:2.46513;stroke-linecap:round;stroke-linejoin:round;paint-order:stroke fill markers;stop-color:#000000" width="55.465603" height="151.60599" transform="rotate(45)" /> <animate attributeName="x" values="-55.790085;265" dur="5s" repeatCount="indefinite" /> </g> </svg>
Because the rectangle is not moving :'(
Any idea
-
Frontend Web Development @lemmy.ml gecloslatitude @lemmy.worldI built an AI-powered quiz app with Next.js and OpenAI
dev.to Building an AI-powered quiz application with Next.js and OpenAI🧙✨In this tutorial, you'll learn how to build an AI-powered quiz application that enables users to...
Link Actions -
Frontend Web Development @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml𝗨𝘀𝗶𝗻𝗴 𝗷𝗤𝘂𝗲𝗿𝘆 𝗿𝗲𝘀𝘂𝗹𝘁𝗲𝗱 𝗶𝗻 𝟱𝟯% 𝗹𝗲𝘀𝘀 𝗝𝗮𝘃𝗮𝘀𝗰𝗿𝗶𝗽𝘁 𝗮𝗻𝗱 𝟯𝟲% 𝘀𝗺𝗮𝗹𝗹𝗲𝗿 𝗳𝗶𝗹𝗲 𝘀𝗶𝘇𝗲 𝗼𝘃𝗲𝗿 𝗘𝗦𝟲
github.com GitHub - jbanes/versus-js: A comparison between jQuery and ES6 approaches to web interface developmentA comparison between jQuery and ES6 approaches to web interface development - jbanes/versus-js
Link Actions -
Frontend Web Development @lemmy.ml Zara @lemmy.mlWhere to get some WebDesign inspiration ?
cross-posted from: https://lemmy.ml/post/17900124
Hi,
I'm looking for some inspiration to create a website.
Do you have a "crush" :) for a website (design speaking)
Or do you know some website that list great visual feature or website ?
Thanks.
-
Frontend Web Development @lemmy.ml gecloslatitude @lemmy.worldI made a getting started guide for embedded analytics
dev.to Mastering Embedded Analytics: A Getting Started Guide 📊TL;DR This article will walk you through all the information you need about embedded...
Link Actions -
Frontend Web Development @lemmy.ml gecloslatitude @lemmy.worlddev.to Things I wish I knew before I started an open-source projectNew to the world of open source? You’ll likely make a few mistakes in your first open-source project...
Link Actions -
Frontend Web Development @lemmy.ml gecloslatitude @lemmy.world7 best open-source chart libraries for developers
dev.to 7 Best Chart Libraries For Developers In 2024 🤯Many applications use charts or graphs for data visualization, which can be implemented using...
Link Actions -
Frontend Web Development @lemmy.ml designerlatitude @lemmy.worldI made a free tool to know my stargazers
dev.to I Made a Free Tool to Know My Stargazers 🌟I have been thinking about the people supporting our repo lately. Every new stargazer means a lot to...
Link Actions