DEV Community

Andrew Luca profile picture

Andrew Luca

🌸 Ikigai β™₯️ All In Developer ♣️β™₯️♠️♦️ πŸ“š Coach at jagaad.it πŸ‘¨β€πŸ’» CTO at code4.md πŸ”« The fastest meme generator in the wild west

Location TÑbor ☰ Joined Joined on  Personal website https://iamandrewluca.com github website twitter website

Education

Technical University of Moldova

Work

@allindevelopers

All 54 comments

πŸ” Private Route in react-router v6

useRoutes([ { path: "/private", element: ( &...

How fast is your Internet?

Good one. This can be derived to calculate how much time left...

Introducing Metho: Safely adding superpowers to JS

This is DOPE! I'm laughing so hard )) These are JavaScript Ex...

The obscure `Function#length` property!

Can be used for currying javascript.info/currying-partials

πŸ—œοΈ Optimal Tuple vs Record

Totally agree πŸ˜€ [number, number, number, number] is a no no ))

JavaScript equivalent of C# 'out' keyword

I think this can be exploited using callback functions and/or...

JavaScript equivalent of C# 'out' keyword

Say w00t! )) Version with for can be made a little bit mor...

🧬 JSX at lowest level

πŸ˜‚ I always like to drop funny gifs mid air πŸ˜€

🧬 JSX at lowest level

Thanks! Glad you liked it!

What was your win this week?

Wrote a blog post that seems to be popular πŸŽ‰ dev.to/iamandre...

🧬 JSX at lowest level

Thanks! Glad you liked it!

🧬 JSX at lowest level

Thanks!

🧬 JSX at lowest level

😬

🧬 JSX at lowest level

Thanks!

πŸ‚ Remove gone git branches

πŸ˜€

ΜΆRΜΆeΜΆaΜΆcΜΆtΜΆ VUE Context Provider Pattern | Custom Hooks

He tries to kill vuex. Boooo πŸ˜‚πŸ˜‚πŸ˜‚ Nice one!

πŸ”Ί Flat React Doom Pyramid in 1LOC

Yeap

πŸ”Ί Flat React Doom Pyramid in 1LOC

Can you please elaborate? πŸ€” That was the point. You write the...

πŸ”Ί Flat React Doom Pyramid in 1LOC

Now I also agree. Looking at first version looks confusing.

πŸ” Private Route in react-router v6

See codesandbox liinks at the end. In that examples I'm using...

πŸ” Private Route in react-router v6

That CRA does not use a router by default I'm very sure. It d...

πŸ” Private Route in react-router v6

Whenever you want. CRA does not have a router installed by de...

React Flat (Multi) Providers

Hey guys! Also wrote an article on this topic. Created a very...

How to test your NPM package locally

Created a small demo here github.com/iamandrewluca/example-n....

How to test your NPM package locally

I have to mention again, that this is a specific use case whe...

How to test your NPM package locally

Some things to take into consideration. Let's supose that you...

React vs Angular vs Vue (briefly)

Oh, got you! That's good. You don't have to pick a router fro...

React vs Angular vs Vue (briefly)

Vue is a library. Vue does not have it all packed in it. Nuxt...

React's default way of appending itself to a DOM tree considered harmful

This is only your opinion What you wrote here is only your...

Typed fetch Response in TypeScript

You can give a read to this also kentcdodds.com/blog/using-fe...

Typed fetch Response in TypeScript

Hmm, I will look into it :)

πŸ—„οΈ Create own React.Fragment

Thank you Sir Michael :)

React's default way of appending itself to a DOM tree considered harmful

Good article! Go even deeper :D const rootElement = docume...

You can now web-monetize your DEV posts! (But don't get your hopes up too quickly)

@ben does this somehow mean that dev.to posts will start to ...

πŸ”₯ How to merge a pull request

Check out this conventionalcommits.org

Understanding CORS

Now I get it. But can the attacker make a simple request, a...

Understanding CORS

CSRF is Cross-site request forgery CORS is Cross-origin...

Understanding CORS

Do we need CSRF protection if CORS is disabled (now allowed...

My Personal Git Tricks Cheatsheet

Git aliases # ~/.gitconfig [alias] spull = "!git sta...

Design Systems (Part I: Foundations)

You can also add GitHub design system primer.style/css

How important are math skills for software development?

I mean, you have to know minimal math const exactPercent...

How many software developers does it take to screw in a lightbulb?

None. This is a hardware problem. :)

Is there any way to detect if a user "can go back" in PWAs (desktop PWA most specifically)

I had also to add this type of navigation for a site that w...

Which editor do you use when opening files like .bash_profile, etc?

vim

Nesting and overriding new React Context API

Please explain your use case and I'll try to help. Give me ...

Nesting and overriding new React Context API

What do you mean? Is this related to React Context API?

How to improve the build speed in React-Typescript, when using material ui

You can give a try to this babel plugin, It should convert...

Can I see your terminal?

Home. macOs / iTerm / zsh / pygmalion

Can I see your terminal?

At work. Ubuntu / Terminator / zsh / pygmalion

React Beginner Question Thread βš›

I made an app, using react/react-router, now I need to make...

React Beginner Question Thread βš›

Actually I looked into compiled sources and is not bundling...

React Beginner Question Thread βš›

When devloping a white-label product, and have more custome...

React Beginner Question Thread βš›

For example I am working on a white-label product. And one ...

loading...