We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
import React, { Component } from 'react'; import ReactDOM from 'react-dom'; import { Map, Overlay, CustomOverlay as Custom, Base, } from 'rc-bmap';
const { Point } = Base;
@Custom class CustomOverlay extends Component { render() { return (
class Example extends React.Component {
state={show:true} componentWillMount() { setTimeout(()=>{ this.setState({show:false}) },5000) } render() { return ( <div style={{ height: '100vh' }}> { this.state.show ? :null } ); } }
ReactDOM.render( , document.getElementById('root'), );
The text was updated successfully, but these errors were encountered:
fix: #105 the wrapper are modified by appendChild
c1c7f2a
more see: https://developer.mozilla.org/en-US/docs/Web/API/Node/appendChild https://reactjs.org/docs/integrating-with-other-libraries.html
d354ab8
Successfully merging a pull request may close this issue.
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import {
Map,
Overlay,
CustomOverlay as Custom,
Base,
} from 'rc-bmap';
const { Point } = Base;
@Custom
class CustomOverlay extends Component {
render() {
return (
);
}
}
class Example extends React.Component {
state={show:true}
componentWillMount()
{
setTimeout(()=>{
this.setState({show:false})
},5000)
}
render() {
return (
<div style={{ height: '100vh' }}>
{
this.state.show ?
:null
}
);
}
}
ReactDOM.render(
,
document.getElementById('root'),
);
The text was updated successfully, but these errors were encountered: