hi there,
I’m new to spfx and reactjs, I’m unable to understand few steps you have described. any would be great for begginner like me.
after installing “@pnp/sp” and “antd@3.26.1”,
It says “Import the library into your application, update constructor, and access the root sp object in render for PnPjs libraries.”
in which file do I have to import and how do I update constructor
The project code is available directly on GitHub. Also, pnp has recently changed a lot, so if you encounter any errors, please refer to the pnp documentation.
hi there,
I’m new to spfx and reactjs, I’m unable to understand few steps you have described. any would be great for begginner like me.
after installing “@pnp/sp” and “antd@3.26.1”,
It says “Import the library into your application, update constructor, and access the root sp object in render for PnPjs libraries.”
in which file do I have to import and how do I update constructor
LikeLike
Hi Yunus.
Don’t be worried about the steps. In fact, I was told to import code in this format.
https://github.com/ravichandran-blog/SPFx/blob/master/spfx-ant-table/src/webparts/spfxAntTable/components/SpfxAntTable.tsx#L5
The project code is available directly on GitHub. Also, pnp has recently changed a lot, so if you encounter any errors, please refer to the pnp documentation.
LikeLike
Thanks Ravi, for taking time to address my issue.
LikeLike