
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
@hellotrust/react
Advanced tools
React SDK for displaying HelloTrust testimonials on your website.
npm install @hellotrust/react
# or
yarn add @hellotrust/react
import { useTestimonials } from '@hellotrust/react';
function TestimonialList() {
const { testimonials, loading, error } = useTestimonials('your-showcase-id');
if (loading) return <div>Loading testimonials...</div>;
if (error) return <div>Error loading testimonials</div>;
return (
<div>
{testimonials.map((testimonial) => (
<div key={testimonial.id}>
<p>{testimonial.final_text}</p>
<p>- {testimonial.provider_name || testimonial.provider_email}</p>
</div>
))}
</div>
);
}
import { Testimonials } from '@hellotrust/react';
function TestimonialList() {
return (
<Testimonials showcaseId="your-showcase-id">
{({ testimonials, loading, error }) => {
if (loading) return <div>Loading testimonials...</div>;
if (error) return <div>Error loading testimonials</div>;
return (
<div>
{testimonials.map((testimonial) => (
<div key={testimonial.id}>
<p>{testimonial.final_text}</p>
<p>- {testimonial.provider_name || testimonial.provider_email}</p>
</div>
))}
</div>
);
}}
</Testimonials>
);
}
The package includes full TypeScript type definitions:
import type { Testimonial, UseTestimonialsResult } from '@hellotrust/react';
interface Testimonial {
id: string;
final_text: string;
provider_email: string;
provider_name?: string;
created_at: string;
}
interface UseTestimonialsResult {
testimonials: Testimonial[];
loading: boolean;
error: Error | null;
}
useTestimonials(showcaseId: string)React hook that fetches testimonials from a showcase.
Parameters:
showcaseId (string, required): The ID of the showcase to fetch testimonials fromReturns: UseTestimonialsResult
testimonials (Testimonial[]): Array of testimonials in the showcase orderloading (boolean): True while fetching testimonialserror (Error | null): Error object if request failed, null otherwise<Testimonials />React component using the render prop pattern.
Props:
showcaseId (string, required): The ID of the showcase to fetch testimonials fromchildren (function, required): Render function that receives UseTestimonialsResultThe SDK can be built in two modes:
Development (localhost):
yarn build:dev
Builds the SDK to connect to http://localhost:8080 for local development.
Production:
yarn build:prod
Builds the SDK to connect to https://api.hellotrust.io for production use.
The API URL is baked into the build at compile time for maximum reliability and performance.
MIT
FAQs
React SDK for displaying HelloTrust testimonials
The npm package @hellotrust/react receives a total of 1 weekly downloads. As such, @hellotrust/react popularity was classified as not popular.
We found that @hellotrust/react demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.