Displaying 1 to 11 from 11 results

jsx-control-statements - Neater If and For for React JSX

  •    Javascript

JSX-Control-Statements is a Babel plugin that extends JSX to add basic control statements: conditionals and loops. It does so by transforming component-like control statements to their JavaScript counterparts - e.g. <If condition={condition()}>Hello World!</If> becomes condition() ? 'Hello World!' : null. Developers coming to React from using JavaScript templating libraries like Handlebars are often surprised that there's no built-in looping or conditional syntax. This is by design - JSX by is not a templating library, it's declarative syntactic sugar over functional JavaScript expressions. JSX Control Statements follows the same principle - it provides a component-like syntax that keeps your render functions neat and readable, but desugars into clean, readable JavaScript.

babel-plugin-react-html-attrs - Babel plugin which transforms selected HTML attributes in JSX to their React equivalents

  •    Javascript

Transforms JSX class attributes into className and for attributes into htmlFor, allowing you to copy and paste HTML into your React components without having to manually edit these particular attributes each time. Read facebook/react#4433 for the reasoning behind why React treats these attributes the way it does and the potential gotchas which await you if you use this plugin (an old version of the JSX transformer used to perform this transformation).

babel-plugin-jsx-pragmatic - Companion to custom JSX pragma, to automatically import the referenced module

  •    Javascript

babel-plugin-transform-react-jsx has a pragma option that's used when transforming JSX to function calls instead of the default function React.createElement. This Babel plugin is a companion to that feature that allows you to dynamically load a module associated with the pragma value.




babel-plugin-transform-react-jsx-img-import - Generate imports for jsx img elements

  •    Javascript

Generate imports for jsx img elements. A handy transform for use in webpack workflows. Prefix a img src with "!" to exclude it from the transformation.

babel-plugin-transform-incremental-dom - Turn JSX into IncrementalDOM

  •    Javascript

Turn JSX into Incremental DOM. Any of the configuration options may also be passed.

babel-plugin-transform-react-jsx-location - Adds a data-source attribute to JSX tags containing the file name and line number of the original source

  •    Javascript

Adds a data-source attribute to JSX tags containing the file name and line number of the original source. Use this plugin to locate which file is generating an element in your page/app. Simply right click on an element in your favourite browser, then hit Inspect and the location of the source is revealed in the data-source attribute.

babel-plugin-inferno

  •    Javascript

This plugin transforms JSX code in your projects to Inferno compatible virtual DOM. It is recommended to use this plugin for compiling JSX for inferno. It is different to other JSX plugins, because it outputs highly optimized inferno specific createVNode calls. This plugin also checks children shape during compilation stage to reduce overhead from runtime application. Add the plugin to your package.json and update the plugin section in your .babelrc file. Or if your Babel settings are located inside the package.json - update the plugin section there.


babel-plugin-jsx-adopt

  •    Javascript

This plugin transforms adopt calls to render props. Idea based on this gist. ⚠️ Experimental: Code you are likely to write should be transformed just fine, convoluted/edge cases might not be covered yet. If you want to use it with babel@7, you should also install babel-core@^7.0.0-0 (just to prevent peer dep warnings).

babel-plugin-jsx-fragment - jsx syntatic sugar for React's `createFragment()`

  •    Javascript

To use include jsx-fragment in your plugins array in your .babelrc or config object. Works with React 0.13+ . By default the fragment tag name is <frag> but you can configure it to whatever you want with the tagName option. You need to use commas (gross) and an array literal (yuck). jsx-fragment allows for a simple syntax to hide the ugliness, based on the discussion here. Just use the pseudo element <frag> to wrap arrays of Elements.

babel-plugin-react-require - [TODO] Babel plugin that adds React import declaration if file contains JSX tags

  •    Javascript

Babel plugin that adds React import declaration if file contains JSX tags. This plugin is only about stateless components that doesn't extends React.Component. If you want to use any other React functions then you should import their by yourself.





We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.