Repository navigation
Conversation
Closed
frol
force-pushed
the
proof-of-concept-external-react
branch
from
November 7, 2016 14:08
0a11d6a to
337fcbd
Compare
This was referenced Nov 8, 2016
Member
|
Fixed by @arunoda |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is not intended for merge!
This is the result of my experiments with React-MD (#196), Material-UI (#119), and others relying on react-addons-* (#204).
To make React Addons usable in Next.js out of the box, Next.js has to accomplish the following:
Here are the steps to get a working project with React-MD:
package.json:{ "name": "my-app", "dependencies": { "next": "^1.1.1", "react-addons-css-transition-group": "^15.3.2", "react-addons-pure-render-mixin": "^15.3.2", "react-addons-transition-group": "^15.3.2", "react-md": "^0.3.7" }, "scripts": { "test": "jest", "dev": "next", "build": "next build", "start": "next start" }, "devDependencies": { "babel-jest": "^16.0.0", "enzyme": "^2.5.1", "jest": "^16.0.2", "react-addons-test-utils": "^15.3.2" }, "babel": { "presets": [ "es2015", "react" ] } }pages/index.js:npm installFetch these changes and compile Next.js yourself, or extract this
distinto./node_modules/next/dist: dist.tar.gznpm run dev/cc @nkzawa