Tag Archives: hell

No More React Context Hell – React Dev Feed

No More React Context Hell If you always wanted it to look like this <Providers providers={[ <FooContext.Provider value=”foo” />, <BarContext.Provider value=”bar” />, <BazContext.Provider value=”baz” />, ]}> <App /> </Providers>, Enter fullscreen mode Exit fullscreen mode here is your Providers Component: const Providers = ({providers, children}) => { const renderProvider = (providers, children) => { const…

Read More

Migrating from promise chains to async-await and escaping the try catch hell – JavaScript Dev Feed

Migrating from promise chains to async-await and escaping the try catch hell async ()=> { await promise } Enter fullscreen mode Exit fullscreen mode async-await is a life saver when it comes to avoiding callback hell or the pyramid of doom. function hell(){ step1((a)=>{ step2((b)=>{ step3((c)=>{ // some code … }) }) }) } Enter…

Read More

BrutalFire.io | A space themed shooter game (Bullet hell game) (.io game) – Game Dev Feed

BrutalFire.io | A space themed shooter game (Bullet hell game) (.io game) A small javascript .io game called BrutalFire. it’s a danmaku (bullet hell) game, a subgenre of shoot ’em ups, with the goal of dodging enemies’ bullets while terminating them. Any bugs/glitches? Tell me in the comments. Try it here:https://codepen.io/FRADAR/full/abJYdxJ Like my games?Follow me:https://codepen.io/FRADAR…

Read More