https://github.com/smallhelm/react-dd
For those who don't use JSX and relied on React.DOM.___ just being function calls
https://github.com/smallhelm/react-dd
Last synced: 12 months ago
JSON representation
For those who don't use JSX and relied on React.DOM.___ just being function calls
- Host: GitHub
- URL: https://github.com/smallhelm/react-dd
- Owner: smallhelm
- License: mit
- Archived: true
- Created: 2015-04-01T20:24:00.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-15T23:36:10.000Z (over 10 years ago)
- Last Synced: 2025-03-29T21:42:38.427Z (about 1 year ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-dd
For those who don't use JSX and relied on React.DOM.\_\_\_ just being function calls
## How to Use It
```js
var dd = require("react-dd");
var Hello = dd.createClass({
render: function(){
return dd.h1(null, "Hello " + this.props.name);
}
});
React.render(Hello({name: "World"}), document.body);
```
## What's wrong with JSX?
_JSX:_ a syntax that feels like HTML, but is actually XML syntax with JavaScript escape sequences. And by the way, you have to compile it to JavaScript before it can be shared with others or executed.
It's hard enough to deal with JavaScript syntax. Why in the world would would we want to mix it in with yet another syntax?
We've all become accustomed to HTML b/c it's what's been handed down and morphed into what it is. But when you think about it, it's a horrible syntax. Let's stop using it!
## Other alternatives to JSX
* [react-no-jsx](https://www.npmjs.com/package/react-no-jsx)
* [JSnoX](https://www.npmjs.com/package/jsnox)
## FYI
This project follows [semantic versioning](http://semver.org/) for releases.
## License
MIT