react-tags

WebJar for react-tags

License

License

MIT
Categories

Categories

React User Interface Web Frameworks
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

react-tags
Last Version

Last Version

0.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

react-tags
WebJar for react-tags
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/adelevie/react-tags

Download react-tags

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/react-tags/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>react-tags</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/react-tags/
implementation 'org.webjars.npm:react-tags:0.2.2'
// https://jarcasting.com/artifacts/org.webjars.npm/react-tags/
implementation ("org.webjars.npm:react-tags:0.2.2")
'org.webjars.npm:react-tags:jar:0.2.2'
<dependency org="org.webjars.npm" name="react-tags" rev="0.2.2">
  <artifact name="react-tags" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='react-tags', version='0.2.2')
)
libraryDependencies += "org.webjars.npm" % "react-tags" % "0.2.2"
[org.webjars.npm/react-tags "0.2.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

react-tags

A simple wrapper around React.DOM.

Write a({href: 'http://github.com'}, 'hello') instead of React.DOM.a({href: 'http://github.com'}, 'hello').

Experimental.

Synopsis:

var React = require('React');
var SiteBoilerPlate = require('../core/SiteBoilerPlate.js'); // customize
require('react-tags').pollute(this, React);  // explicitly pollute scope with tags

var content = function() {
  return div({}, 
    p({}, "A paragraph!"),
    ul({}, 
      li({}, "one"),
      li({}, "two"),
      li({}, a({href: "http://github.com"}, "three"))
    ),
    div({}, 
      h3({}, "Hello world"),
      p({}, "some content")
    )
  );
};

var hello = React.createClass({
  render: function() {
    return SiteBoilerPlate({
      children: content()
    });
  }
});

Installation:

npm install react-tags

For a non-React flavor of this library, check out wut.

Versions

Version
0.2.2