
Research
Security News
The Growing Risk of Malicious Browser Extensions
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
nested-comments-react
Advanced tools
This is a simple react library which supports Reddit like nested comments.
data: The initial set of comments to be loaded by the component
[{parent: AlphaNumeric, child: AlphaNumeric, comment: String, name: String, userId: "Alphanumeric}]
[{parentId: 10, childId: 11, comment: "wassup!", name: "Dark Lord", userId: 1}, {parentId: 11, childId: 12, comment: "Nothing much..:/", name: "Dark Servant", userId: 2}, {parentId: 1, childId: 14, comment: ":)", name: "Dark Master", userId: 3}]
userName: Name of the logged in user. Through whose account the comments are being made. It is of the type String
userId: UserId of the logged in user. It is Alphanumeric.
paginationSize: The number of comments to be loaded on each click of the show more button. Default value 2. It is an Integer.
NOTE: Make sure that all the child id's are unique. Also, they do not contain any special characters.
{parentId: AlphaNumeric, childId: AlphaNumeric, comment: String, name: String, userId: Alphanumeric}
{parentId: 10, childId: 11, comment: "wassup!", name: "Dark Lord", userId: 1}
Hey! If you found this library helpful make sure to star the repo...:)
FAQs
A simple react component for nested comments
The npm package nested-comments-react receives a total of 12 weekly downloads. As such, nested-comments-react popularity was classified as not popular.
We found that nested-comments-react demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover how browser extensions in trusted stores are used to hijack sessions, redirect traffic, and manipulate user behavior.
Research
Security News
An in-depth analysis of credential stealers, crypto drainers, cryptojackers, and clipboard hijackers abusing open source package registries to compromise Web3 development environments.
Security News
pnpm 10.12.1 introduces a global virtual store for faster installs and new options for managing dependencies with version catalogs.