Test-Drive Your Own React (on hold) 🇵🇱 🇬🇧 6 hours
2 main goals of this workshop:
- learn TDD with a non-trivial example
- learn the essence of Virtual DOM based libraries such as React/Elm/Hyperapp
In about 6 hours we'll write 200 lines of test code and about 100 lines of production code.
Agenda
- Test Driving DOM API with tape and jsdom
- Building Virtual DOM builder similar to React.createElement
- Building patch function handling Virtual DOM diffing
- Testing performance optimizations
- Structuring test code for clarity
- Building rendering function similar to ReactDOM.render
- Integrating our library with hyperx which is similar to JSX