Lifelong Learner
Hi, I'm James Leveille.
I'm a lifelong learner who loves to explore, build, and share the journey. This space is where I document my explorations across coding, reading, and faith—sharing practical insights, book takeaways, and personal reflections as I grow.
Recent
Writing
- Programming 6 min read
Why do I need useEffect? (and what breaks without it)
Why side effects belong after render, and how to avoid infinite loops and stale values
Calling APIs or timers directly inside a React component can trigger endless re-renders and bugs. Learn how useEffect runs side effects safely after render, how dependencies and cleanup work, and common mistakes to avoid.
Read →
- Bible 2 min read
All You Need Is God’s Presence
Why awareness of God’s presence matters more than changing your circumstances
Read →
- Programming 4 min read
Why useState Instead of Plain Variables in React
Understanding how React persists state across re-renders and why direct variable mutation fails to trigger UI updates.
Learn why plain JavaScript variables don't work for component state in React, how the useState hook preserves data across re-renders using Object.is(), and why you should never mutate arrays or objects in place.
Read →