Question on using Script to load api key
fufjvnvnf opened this issue · 1 comments
fufjvnvnf commented
For example, can I do something like this:
<Script>
url="http://api.map.baidu.com/api?v=2.0&ak=FUmG8hLpACVnEatoLyLNGSIG4SY6VAIM"
onCreate={this.handleScriptCreate.bind(this)}
onError={this.handleScriptError.bind(this)}
onLoad={this.handleScriptLoad.bind(this)}
</Script>
jakubkottnauer commented
@fufjvnvnf Yes, absolutely :)