3 ms·
Here's what a "little bit" of JavaScript can't do: 1. Manage subtle browser differences 2. Store and manage reactive state 3. Manage declarative updates
by anonytrary 6y ago
Here's what a "little bit" of JavaScript can't do:
1. Manage subtle browser differences
2. Store and manage reactive state
3. Manage declarative updates
You can build a simplified version of React in under 100 lines of code, but that probably won't take care of subtle browser differences. A little bit of JavaScript can do a lot, but it can't do everything you need these days.
- andai 6y agoDoes anyone know a 100 line react clone or tutorial? That sounds very educational.
- Tenemo 6y agoThis one is amazing: https://pomb.us/build-your-own-react/ https://pomb.us/build-your-own-react/
- woutr_be 6y agoI don’t think the author is arguing that you have to replace your React applications with vanilla JS, but instead of using React by default, you could consider using vanilla JS. The tree things you mentioned might be important to you for a specific project, but these are not requirements for every project. So instead, do what makes sense to you. And remember that you don’t always need a framework to achieve what you actually need.