
Freelance software engineer - .NET, Web Front End, JS, HTML5, CSS, Angular, NodeJS, ReactJS, Mobile Apps
Belgium
Joined March 2009
- Tweets872
- Following341
- Followers94
- Likes2K
Dependency Confusion: How I Hacked Into Apple, Microsoft and Dozens of Other Companies | by Alex Birsan | Feb, 2021 | Medium medium.com/@alex.birsan/depe…
Green hackers around the world, let’s destroy Bitcoin franck-leroy.medium.com/gree…
Dominique Menu retweeted
⚛️ React tip: you can pass *anything* into context, including "subscribable" objects (like RxJS observables, etc.)!
This means that you can share & subscribe to streams of values that change frequently, without causing unnecessary rerenders.
Demo: codesandbox.io/s/subscribabl…

ALT const timerStream = // some subscribable object const TimerContext = createContext(); function App() { return ( <TimerContext.Provider value={timerStream}> {/* Since timerStream will never renew, components that don't care about it will not rerender unnecessarily! */} <Time /> </TimerContext.Provider> ); }
React Hooks - Understanding Component Re-renders by @guptagaruda link.medium.com/QYUZuZszS8
Hundred year mistakes | Fabulous adventures in coding ericlippert.com/2020/02/27/h…
What's new in Angular 9.0? Angular 9.0 is out! blog.ninja-squad.com/2020/02…
What's new in Angular 9.0? Angular 9.0 is out! blog.ninja-squad.com/2020/02…

![function Time() { const stream = useContext(TimerContext); const [elapsed, setElapsed] = useState('--'); useEffect(() => { const { unsubscribe } = stream.subscribe(setElapsed); return unsubscribe; }, [stream]); return <strong>{elapsed} seconds</strong>; }](https://pbs.twimg.com/media/EQ04P8KW4AAcM8v.jpg?name=small&format=webp)