Closed taozhi8833998 closed 7 years ago
These values are provided by the context
, not the props
, see this section of the documentation
ok, thx, it works. Further more, I have seen this from react official website
If you want your application to be stable, don't use context. It is an experimental API and it is likely to break in future releases of React.
Thanks for ur help!
Quite shifty changing this in a bugfix release
I build an simple app, with the following code
TaoZhiLayer
is a simple compent as below showsin
TaoZhiLayer
I could not getmap
andlayerContanier
properties in props, while I can get them in version1.1.0
, anyone has met this issue??? if it not issue, how could I get them in my component when I installed react-leaflet version higher than1.1.0