All 33 Comments

re: Using WebSockets in React
What's up with mixing var and let instead of just using con...
re: Here's a React v16+ Cheatsheet (PDF/JPEG/Custom themes)
const App = () => <MyComponent /> // component ...
re: How to sync props to state properly in React Hooks
Beware though, as syncing props and state is usually an ant...
re: React: useEffect explained with lifecycle methods
In addition to my previous comment, it is incorrect to say ...
re: React: useEffect explained with lifecycle methods
Small typo in the last code snippet. I believe you meant co...
re: Simpler React component design with the Chain of Responsibility pattern
Not that much to be done given the first code snippet is al...
re: Simpler React component design with the Chain of Responsibility pattern
Sounds like a very complicated way to achieve something ver...
re: Top 10 JavaScript Patterns Every Developer Like
A bunch of outdated code snippets probably taken out from s...
re: How to clone a portion of an object using the power of IIFE, arrow functions, destructuring assignment and property shorthands.
You could also write const { lastName: _, ...luca } = pe...
re: Modern JavaScript, 10 things you should be using, starting today
export default (a,b) => return a *b; You'd need curl...
re: React — Access custom params in handlers the right way
The example given isn't relevant. If the id is coming from ...
re: 5 Programming Patterns I Like
cond1 ? true : cond2 ? true : false is the same as cond1 ...
re: What newsletters are you subscribed to?
As mentioned, newsletter are more for discovering, not lear...
re: All That You Need to Know About Microsoft's New Programming Language: Bosque
Not exactly the first one though github.com/Microsoft/vsco...
re: The Definitive React Hooks Cheatsheet
In this case there's no memory leak though. It's simply a ...
re: Poll, Yes or No: When you code in JavasScript, do you think about internal slots?
Maybe you should start by a "Do you know what internal slot...
re: Which GraphQL client do you use, and why?
Why do you need to manually update the cache?
re: Small Project Reflection: Natural Pokedex (React)
One big issue with your app is you are literally sending hu...
re: The shortest way to conditional insert properties into an object literal
Interesting article, I had always found that behavior a bit...
re: An easy way to create a customize dynamic table in react js
key={Math.random()} The key is supposed to be consisten...
re: Facebook stored hundreds of millions of passwords in plaintext
To read some more elaborate opinions on the matter. news.y...
re: Python VS Javascript
Python has mutable and immutable data types like set (mutab...
re: Hooked on React hooks
Your useFetchData example is wrong. Look at the function si...
re: How to Deep Clone an Array in JavaScript
My point is to use an optimised method. Deep cloning arrays...
re: What is an IIFE?
React is just one example where IIFE can be useful though t...
re: How to Deep Clone an Array in JavaScript
As pointed out in other comments, relying on JSON.parse and...
re: What is an IIFE?
There are useful use for IIFE in modern apps. For instance ...
re: Module pattern in JavaScript
Now we have actual modules with esm or even commonjs, what'...
re: A React hook to handle state with dependencies
In my previous comment: selectedOption may not be defined s...
re: A React hook to handle state with dependencies
The code does not need to be so verbose, it boils down to: ...
re: A React hook to handle state with dependencies
There's a reason whileuseMemo shouldn't be used, it runs wh...
re: A React hook to handle state with dependencies
I believe what you're doing here in an anti-pattern and sho...
loading...