3 ms·
To be honest HTML is a pain. For example the HTML approach to style parts of a control is to use pseudoclasses. Sometimes the selectors are different across br
by zarzavat 5mo ago
To be honest HTML is a pain.
For example the HTML approach to style parts of a control is to use pseudoclasses. Sometimes the selectors are different across browsers! Then you have to test across browsers because who knows if it will actually work correctly.
React is not just easier it's more dependable. If I make something with React and some divs I know it's going to work the same in all browsers.
- recursive 5mo agoThe selectors are not different. Whatever problems you have applying styles to html elements also exist in react.
- zarzavat 5mo agoYes they are. For example, Blink/Webkit allow <meter> and <progress> to be styled. Firefox does not support those pseudoclasses so you can't style those elements cross browser. Then there is <input type="range"> Blink, Webkit: ::-webkit-slider-thumb ::-webkit-slider-runnable-track Firefox: ::-moz-range-thumb ::-moz-range-track ::-moz-range-progress If I build a meter or progress bar in React, I can easily style it and because it uses divs and not wonky pseudoclasses then it looks the same in every browser.