hi, I just trying to use the reapp-ui with react (0.14.2)
but I got the errors:
Warning: require('react/addons') is deprecated. Access using require('react-addons-{addon}') instead.
Warning: Button.getDOMNode(...) is deprecated. Please use ReactDOM.findDOMNode(instance) instead.
here is my codes:
import React, { Component } from 'react'
import iOSTheme from 'reapp-ui/themes/ios/theme'
import Theme from 'reapp-ui/helpers/Theme';
import Button from 'reapp-ui/components/Button';
class Home extends Component {
render() {
return (
<div>
<Theme {...iOSTheme}>
<Button>test</Button>
</Theme>
</div>
)
}
}
export default Home
hi, I just trying to use the reapp-ui with react (0.14.2)
but I got the errors: Warning: require('react/addons') is deprecated. Access using require('react-addons-{addon}') instead. Warning: Button.getDOMNode(...) is deprecated. Please use ReactDOM.findDOMNode(instance) instead.
here is my codes:
plz advise, thx