Solution 1: Suppose by contradiction that there exists $x_0 \in (0,1]$ such that $f(x_0) \neq 0$. Because $f$ is continuous, there exist $a<b$ such that $f$ is nonzero on $[a,b]$; without loss of generality, suppose it is positive (otherwise consider $-f$). In particular, you have
$$b-a \geq \int_a^b \frac{f'(x)}{f(x)}dx = \ln(f(b)) - \ln(f(a)).$$
Now, according to mean value theorem, there exists $c \in (a,b) \subset (0,1)$ such that
$$1 < \frac{1}{c} = \frac{\ln(f(b))- \ln(f(a))}{b-a} \leq 1,$$
a contradiction.
Solution 2: Let $x_m \in [0,1]$ be such that $|f(x_m)|= \max\limits_{x \in [0,1]} |f(x)|$. Without loss of generality, we may suppose $f(x_m) \geq 0$ (otherwise consider $-f$). By mean value theorem, for all $x<x_m$, there exists $c \in (x,x_m)$ such that
$$f(x_m) \geq |f(c)| \geq |f'(c)| = \left| \frac{f(x_m)-f(x)}{x_m-x} \right| = \frac{f(x_m)-f(x)}{x_m-x}.$$
Therefore,
$$f(x_m) \leq \frac{f(x)}{1-x-x_m} = \frac{f(x)}{x} \cdot \frac{x}{1-x-x_m}. \hspace{1cm} (1)$$
On the other hand, from Taylor's expansion
$$f(x) = \underset{=0}{\underbrace{ f(0) }} + x \underset{=0}{\underbrace{ f'(0) }} + o(x),$$
hence $\frac{f(x)}{x}=o(1)$. When $x \to 0$, $(1)$ gives $0 \leq f(x_m) \leq 0$. Consequently, $f \equiv 0$.