To strengthen the convergence of an integral, a integration by parts is always a good idea.
Here we have
$$\begin{aligned}
f(x)
&=\int_0^x\sin\left(\frac 1t \right) dt\\
&= \left[ t^2 \cos\left(\frac 1t \right)\right]_0^x - \int_0^x 2t\cos\left(\frac 1t \right)dt\\
&= x^2 \cos\left(\frac 1x \right) - \int_0^x 2t\cos\left(\frac 1t \right)dt
\end{aligned}$$
You can apply the fundamental theorem of calculus for the second term, since it is the integral of a continuous function. The first term is a $O(x^2)$, so it is differentiable at zero with null derivative. In the end, we get $f'(0) = 0$.
[Reminder — A function $f$ is derivable at zero with derivative $a$ if and only if $f(x) = f(0) + ax + o(x)$ when $x\to 0$.]