babel-helper-builder-react-jsx
Helper function to build react jsx
Last updated 8 years ago by hzoo .
MIT · Repository · Original npm
$ cnpm install babel-helper-builder-react-jsx 
SYNC missed versions from official npm registry.

babel-helper-builder-react-jsx

Usage

type ElementState = {
  tagExpr: Object; // tag node
  tagName: string; // raw string tag name
  args: Array<Object>; // array of call arguments
  call?: Object; // optional call property that can be set to override the call expression returned
  pre?: Function; // function called with (state: ElementState) before building attribs
  post?: Function; // function called with (state: ElementState) after building attribs
};

require("babel-helper-builder-react-jsx")({
  pre: function (state: ElementState) {
    // called before building the element
  },

  post: function (state: ElementState) {
    // called after building the element
  }
});

Current Tags

  • 6.26.0                                ...           latest (8 years ago)
  • 7.0.0-beta.3                                ...           next (8 years ago)

2 Versions

  • 7.0.0-beta.3                                ...           8 years ago
  • 6.26.0                                ...           8 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org