react-dd

1.0.0 • Public • Published

react-dd

For those who don't use JSX and relied on React.DOM.___ just being function calls

How to Use It

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

FYI

This project follows semantic versioning for releases.

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i react-dd

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • farskipper