After rewriting the definition of derivatives (which is the limit definition), we still treat $\frac{dy}{dx}$ as a fraction, for example, $\int {sin(x)cos(x)dx}$ , we substitute that $cos(x) = \frac{dy}{dx}$ and $sin(x) = y$ , then we cancel $dx$ with $dx$ as it's a fraction.
In fact, after rewriting the definition of derivatives as $\frac{df}{dx}= \grave f(x)= \lim\limits_{h \to 0} \frac{f(x+h)-f(x)}{h}$ , it's no more a fraction , but we still treat it as a fraction like the example above.
So, How can both be correct treating it as a fraction and the limit definition, How can we reconcile between treating it as a fraction and it's not actually a fraction by the limit definition?