A straightforward approach using Rolle's Theorem:
Let $n\in\mathbb{N}^*$. Since $f$ is differentiable on $\left(\dfrac1{n+1},\dfrac1n\right)$ and continuous on $\left[\dfrac1{n+1},\dfrac1n\right]$, there exists $c_n\in\left(\dfrac1{n+1},\dfrac1n\right)$ such that $f'(c_n)=0$.
This shows that there exists a sequence $(c_n)_{n\in\mathbb{N}^*}$ that is decreasing and $\lim\limits_{n\to+\infty}c_n=0$ such that for all $n\in\mathbb{N}^*$, $f'(c_n)=0$. Since $f'$ is continuous at $0$, we must have:
$$f'(0)=\lim_{n\to+\infty}f'(c_n)=0.$$
Now repeat the process.