Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including react-transform-hoc with all npm packages installed. Try it out:

require("react/package.json"); // react is a peer dependency. var reactTransformHoc = require("react-transform-hoc")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

react-transform-hoc v1.0.0

React Transform that uses whatever Higher Order Component you provide

react-transform-noop

This is a react-transform that does nothing! Its just a starter kit showing how to write/test/publish a react-transform.

Features

  • Builds with babel 6 using the es2015 and react presets. (npm compile)
  • Tests with mocha (npm test)

Getting Started

Usage

There's no point in using this transform. It doesn't do anything! That being said, you can use it by updating your .babelrc file to look like the following. Your much fancier transform will also require something like this.

{
  "presets": [
    "react"
  ],
  "plugins": [
    ["react-transform", {
      "transforms": [{
        "transform": "react-transform-noop"
      }]
    }]
  ]
}
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free