reactjs

daishi,
@daishi@fosstodon.org avatar

We are excited about React Compiler, aren't we? I just remembered that my first OSS library in JavaScript was a JS-to-JS compiler! Funny how things come around.

https://github.com/dai-shi/continuation.js

(The source code is hardly readable, even for me now... but feel free to try.)

#ReactJS #React #JavaScript #TypeScript

daishi,
@daishi@fosstodon.org avatar

@indutny oh, what a coincidence!

indutny, (edited )
@indutny@fosstodon.org avatar

@daishi タイムリーでしょう。ですけど、だいしさんのプロジェクトが私の過去のより役に役に立ちそうですよ!面白い実験ですね。

daishi,
@daishi@fosstodon.org avatar

Fine-grained updates with TC39 signals in React? 🤯

Another experimental feature in use-signals. https://github.com/dai-shi/use-signals

⚠️NEVER EVER USE IT IN PRODUCTION⚠️

video/mp4

daishi,
@daishi@fosstodon.org avatar

I just released use-context-selector v1.4.4,

found out it's the 50th version,

and found out it has 100 dependents!

#ReactJS #React #JavaScript #TypeScript #ReactHooks

davesh,
@davesh@hachyderm.io avatar

@daishi the tax writeoff is going to be awesome

dey, French
@dey@mastodon.xyz avatar

J'ai mis à jour mon CV https://www.doyoubuzz.com/david-epely

En poste, je suis ouvert aux propositions de jobs de #frontenddeveloper #reactjs, #typescript … à #Nantes ou remote.
#jechercheunjob

dopey_kun,
@dopey_kun@sakurajima.moe avatar

I think it's the first time I'ved used a reducer in React in like 3 years (last time was when I used Redux). I always avoided them because of how boilerplate-y they were, but honestly, they're awesome considering the alternative of a whole bunch of useState and useEffect spaghetti.

#ReactJS

anianimalsmoe,
@anianimalsmoe@sakurajima.moe avatar

@dopey_kun For a game, I'd definitely just go full Redux, because of the convenience of persistence and tab-syncing. It's just a little annoying to get both working together.

anianimalsmoe,
@anianimalsmoe@sakurajima.moe avatar

@dopey_kun A player may accidentally have the game already open in multiple tabs, and expect the game to be exactly the same in each one.

If you just use localstorage, the save state may accidentally get overwritten by old state from an old tab. redux-state-sync forces old tabs to update.

Of course, it might cause other issues if you don't do it carefully too, but it should be fine if the entire UI runs on redux

daishi,
@daishi@fosstodon.org avatar

Just published our React RSC framework, Waku v0.19.2! Fixed various issues and added Netlify support and AWS Lambda support (by aheissenberger!) There are still some known issues and we are working hard on them.

Repo 👉 https://github.com/dai-shi/waku
Demo 👉 https://demo.waku.gg ⛩️

Blue_Jersey,
@Blue_Jersey@fosstodon.org avatar

Every tutorial, blog, and YT channel, these days.

Let's build X with Nextjs

Let's learn Y with Nextjs

Let's learn HTML and CSS with Nextjs

Let's learn Javascript with Nextjs

Let's learn React with Nextjs

Let's learn Computer Science with Nextjs

Let's learn Nextjs with Nextjs

I feel like the only solution to anything in life is Nextjs

Same tutorials, same projects, same framework, and same copy/paste

danb,
@danb@fosstodon.org avatar

@Blue_Jersey I've assumed it's heavy marketing from Vercel trying for growth to justify their hundreds of millions in funding, and multi-billion valuation.

daishi,
@daishi@fosstodon.org avatar

HackDiary#018
How would you implement removeDuplicates with a custom equality function?

https://daishi.gumroad.com/p/hackdiary-018 📔

daishi,
@daishi@fosstodon.org avatar

@indutny yeah, it doesn't change the number of operations.

indutny,
@indutny@fosstodon.org avatar

@daishi sorry, see my response. I think it isn’t as slow as I thought. There is some extra work happening, but I think your approach is the cleanest if you need a custom equality function

martian,

"Overreact", the open-source React/HTML/CSS game engine I'm building now supports basic 3D stuff.

It's still very alpha, and pretty light on documentation, but I'm liking where it's heading! :-D

video/mp4

DawnstarGames,
@DawnstarGames@mastodon.gamedev.place avatar

@martian Very cool reminds me of the "Land Before Time" CD-ROM game I had as a kid.

BreoganHackett,
@BreoganHackett@mastodon.gamedev.place avatar

@martian ooh love how the tileset looks!

jbzfn, (edited )
@jbzfn@mastodon.social avatar

☢️ If you're building on Next.js, get out while you can. One point of failure, Big VC Opensource Energy.

They're already pulling the rug on different parts of its framework, making them only feasible on Vercel.

Extreme conflict on interests.

Small revenues to justify those expensive engineers and devrel.

They're chockholding the React community, like Meta wasn't bad enough already.

Trying to be the AWS of React isn't a good look tbh.

cheeaun,
@cheeaun@mastodon.social avatar

Very hacky but surprised this could work. Literally assigning ref to a parent node outside of a component, else falling back to original node, besides merging multiple refs into a single ref 😂🤪💥

cheeaun,
@cheeaun@mastodon.social avatar

@alvin the refs are for multiple (different) hooks that need them. But all the hooks refer to the same element as ref, so need to merge all into one 🤪

alvin,

@cheeaun cheeeem

schizanon,
@schizanon@mas.to avatar

Maybe I just don't want to be a anymore...

ak,
@ak@mastodon.social avatar

@schizanon I get that feeling sometimes. Been doing a lot of backend lately and it's like... so simple compared to the state space of a user interface. (Obviously there is complexity in places, and you have to deal with horrible stuff like Docker, but hey.)

plaidman,

Are you thinking of trying a different frontend framework? Going backend? Different language?

kellogh,
@kellogh@hachyderm.io avatar

I haven’t touched frontend until recently and, I have to admit, is pretty neat. Strong types with some messaging patterns I’m used to seeing with weaker type systems

vrm,

@kellogh it's a trap 😅

schizanon,
@schizanon@mas.to avatar
nosherwan,
@nosherwan@fosstodon.org avatar

:react:
A new fine-grained reactivity state manager

Legend-State:

There is a new state manager for react, that promises to be fast; provides fine-grained reactivity; allows global storage & allows state storage in local storage.

https://legendapp.com/open-source/state/

https://youtu.be/E4TH77SMOG8

They are accepting requests for implementations for other frameworks:

https://legendapp.com/open-source/state/other-frameworks/




  • All
  • Subscribed
  • Moderated
  • Favorites
  • reactjs
  • InstantRegret
  • ngwrru68w68
  • everett
  • mdbf
  • modclub
  • rosin
  • khanakhh
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • Youngstown
  • GTA5RPClips
  • slotface
  • kavyap
  • JUstTest
  • ethstaker
  • osvaldo12
  • normalnudes
  • tacticalgear
  • cisconetworking
  • cubers
  • Durango
  • Leos
  • anitta
  • tester
  • megavids
  • provamag3
  • lostlight
  • All magazines