Lucifier129 / react-lite

An implementation of React v15.x that optimizes for small script size
MIT License
1.73k stars 98 forks source link

Tried to use it with react-bootstrap #10

Closed arran4 closed 8 years ago

arran4 commented 8 years ago

I am not sure if it's my setup. However I got an issue at this line in react-bootstrap: var version = _react2['default'].version.split('.').map(parseFloat); Seems the react object isn't populated with the version.

(Error was, Uncaught TypeError: Cannot read property 'split' of undefined )

Lucifier129 commented 8 years ago

hey, react-bootstrap use some special api of react, such as ReactDOM.unstable_renderSubtreeIntoContainer and React.version. I think it is a dirty way, but I still try to support react-bootstrap.

you can try again. use the new version(v0.0.7) of react-lite.

arran4 commented 8 years ago

Actually, works perfectly. Thanks!

Lucifier129 commented 8 years ago

hi, I checkout the react-bootstrap repository, any run its doc/examples server with react-lite, find out some bug to fixed.

now the lastest version v0.0.8 will be better for you.

arran4 commented 8 years ago

The drop downs don't work.. I am not sure if this is entirely related. But it still seems to work in general with 0.0.8..

See https://ide.c9.io/arran4/go-appengine-bootstrap-react-lite or https://github.com/arran4/go-appengine-webpack-bootstrap-sass-react-lite-es6

Lucifier129 commented 8 years ago

@arran4 see README

react-lite(v0.0.11) support react-bootstrap now. a little difference with react.

arran4 commented 8 years ago

The drop downs are definitely working now.. Thanks!

On Mon, 4 Jan 2016 at 21:48 工业聚 notifications@github.com wrote:

@arran4 https://github.com/arran4 see README https://github.com/Lucifier129/react-lite#what-can-react-lite-do

react-lite(v0.0.11) support react-bootstrap now. a little difference with react.

— Reply to this email directly or view it on GitHub https://github.com/Lucifier129/react-lite/issues/10#issuecomment-168642821 .