Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix] react is accessible via root['React'] #45

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

little-arhat
Copy link

ClojureScript uses Google Closure and goog to require dependencies, and react is accessible via root['React'] there.

Webpack preamble:

(function webpackUniversalModuleDefinition(root, factory) {
        if(typeof exports === 'object' && typeof module === 'object')
                module.exports = factory(require("react"));
        else if(typeof define === 'function' && define.amd)
                define(["react"], factory);
        else if(typeof exports === 'object')
                exports["PlexusForm"] = factory(require("react"));
        else
                root["PlexusForm"] = factory(root["React"]);
})(this, function(__WEBPACK_EXTERNAL_MODULE_2__) {

@ismaelga
Copy link

ismaelga commented Nov 2, 2015

Hello. I'm maintaining a fork of this project at https://github.com/ismaelga/react-json-editor. It would be great if you send this PR there

ty

@little-arhat
Copy link
Author

@ismaelga I've ended up creating my own forks with some additional features: https://github.com/little-arhat/llexus-form + https://github.com/little-arhat/llexus-validate.

New in my fork: support for additionalProperties, "tuple typing".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants