total brain fart 🙃 thanks for flagging that!
Conversation
Glad to helping, sometimes we get caught up in the deets 😅
Really awesome article, Amelia!
The comparison side by side with the visual markers provided great clarity.
cc’ing & check this out
4
2
This is VERY cool. I especially love this. That's a major pitfall for people and I love that you're calling it out.
read image description
ALT
1
2
To drive it home a bit more, I'd add an example of a component that has two different things it's doing in componentDidMount/componentDidUpdate/componentWillUnmount and then separating those things into two separate useEffect calls to show that you can separate concerns too.
2
3
const dimensions = useMemo(getDimensions, [margins])
const xScale = useMemo(getXScale, [data])
const yScale = useMemo(getYScale, [data])
You could do probably just do this:
const dimensions = getDimensions()
const xScale = getXScale()
const yScale = getYScale()
1
1
Unless those functions are computationally expensive. The idea behind useMemo isn't to keep state in sync, but to avoid recalculating things unnecessarily. :)
2
3
All that said, your website is amazing. I'm inspired 😮
1
3
🙏thanks for the thoughts & kind words!
btw I have your testingjavascript.com page bookmarked as a design inspiration - I love how clean & focused it is, but still has fun details and a consistent design language
1
5
1
2
1
3
Thanks! The admiration is mutual. Love your super-beginner-friendly “How to learn d3.js” article.
I’m still in n00b d3 phase and have it bookmarked 🙌
♥♥♥
the first chapter here is a free download, and tbh I think it's a more fun intro to diving in and making charts right away.
newline.co/fullstack-d3
Feel free to ping me with any q's! It's really fun to play around with d3 & visualizing data once you get the hang of it
1
3



