Question on using Script to load api key
fufjvnvnf opened this issue · comments
Wilson Chen 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>
Jakub Kottnauer commented
@fufjvnvnf Yes, absolutely :)