| ▲ | c-smile 6 hours ago | |
What if: 1. JS supports JSX literals so
will be compiled into
2. We extend DOM API to accept such constructs:
3. Add appropriate events: componentDidMount, componentWillUnmount, etc. for cases when tag in JSX (uppercased) resolves to a class or function.4. Add render() support. A method that generates tree of elDef's. It gets called by append(),prepend() and patch(). And we will get native React implementation. This will be quite useful and allowed to marry React alike approach with WebComponents into single mechanism. 1...4 is how it is implemented in my Sciter as the Reactor thing, see: https://docs.sciter.com/docs/Reactor/ | ||