Skip to main content
BlooTrue
no code neededunlimited viewsfree forever

Free Walmart Review Widgets for Next.js / React

Embed Walmart reviews on any Next.js / React page in 60 seconds — next/script component, paste, save. What buyers say about your product on Walmart, on your own site.

Build Your Walmart Review Widget

Walmart

Key facts: 60-second install on Next.js / React · free forever, no plugin needed · installs via the next/script component · no view caps on any plan · daily review auto-sync on paid plans · schema.org markup on paid plans

Last updated ·by Mike Ragimov

Walmart reviews on a Next.js brand site

Consumer brands that sell on Walmart.com often build a fast brand site in Next.js. Showing the Walmart reviews of a product on its own page brings shoppers' words from the marketplace to the brand's home.

How does the code go into Next.js?

Load the script with next/script and change class to className in the snippet, or React drops it.

Where on a product page?

Under the product photos and the 'Buy on Walmart' button, before the specifications.

Example

A kitchen gadget brand with ten products

Each product page renders the widget for that product's Walmart listing, so the reviews and the gadget always match, including the seller's replies where the brand answered a question.

SEO + AI schema · paid plans

Review schema markup, on paid plans

Paid widgets add schema.org Review and AggregateRating JSON-LD to the page they sit on, so search engines and AI answer engines can read your Walmart reviews as structured data. Google does not show review stars for reviews a business shows about itself, so the gain is readability, not stars. The free plan shows the reviews without the schema. See how the schema works

How to Add Walmart Reviews to Next.js / React

Connect your Walmart profile in BlooTrue, pick a style, then paste one embed code into the next/script component on Next.js / React and publish.

  1. 1

    In app/layout.tsx import Script from next/script and add the BlooTrue loader once inside the body, with strategy set to afterInteractive.

  2. 2

    Drop the widget div into any page or component where the reviews should appear.

  3. 3

    Change class to className on that div — the snippet is HTML and JSX will not accept class.

  4. 4

    Deploy. The loader watches the DOM, so the widget survives client-side navigation too.

A raw <script> tag pasted into a component will not execute, which is what next/script is for — and the snippet's class attribute has to become className or React drops it.

Where the Code Goes on Next.js / React

In a Next.js app the snippet splits in two. The loader goes in once, in app/layout.tsx, as a next/script component with strategy set to afterInteractive so it survives client-side navigation.

The div goes wherever the reviews belong, in any page or component. The one edit the pasted code needs is class becoming className, because the snippet is HTML and JSX will not accept class. The widget takes the width of its parent element, so a max-width wrapper is the usual way to size it.

If the widget does not show on Next.js / React

  • If nothing renders, check the div uses className rather than class — React silently drops the class attribute and the loader then finds nothing to mount.
  • A raw script tag pasted straight into a component will not execute. Use next/script with strategy afterInteractive instead.
  • If the widget shows on a hard refresh but not after in-app navigation, the loader was placed in a page rather than in the layout. Move it to app/layout.tsx so it mounts once for the whole app.

Still blank? Our help article Widget not showing covers the checks that apply on every site.

Official documentation: Next.js / React: Script Component

Walmart Review Widget for Next.js / React — Free, No Plugin

Embed Walmart reviews on any Next.js / React page with a single copy-paste embed code. What buyers say about your product on Walmart, on your own site. Installs via the next/script component.

Where Walmart reviews help most on Next.js / React

Brands with a custom-built catalogue in Next.js / React usually keep products in a database or CMS. Store each product's Walmart widget id in its record and render the embed on that product's page, so every page shows its own reviews.

Load the script once in the shared layout. If a product is not sold at Walmart, leave the field empty and the page shows nothing, rather than another item's reviews standing in for it. A nightly job can flag records whose retail listing has since been removed or merged.

About Walmart reviews in this widget

The Walmart widget shows shoppers' reviews of one product from its walmart.com/ip page, with the rating out of 5 and the review count Walmart shows for that product in the header, and the product name as Walmart lists it. When the seller has replied to a review, the reply stays under it. The reviews describe the product, not a seller or a Walmart store, so they suit brand sites and product pages. The usual mistake is pasting a search or a category page; the builder needs one product page. The header is Walmart's own figure, not an average of the reviews shown.

Walmart Widget on Next.js / React — FAQ

Why doesn't a script tag inside a component run?
React won't execute it; next/script loads it properly.
Which link does the builder need?
The product's walmart.com/ip page.
Whose rating is in the header?
Walmart's rating and review count for that product.

Ready to Put Walmart Reviews on Your Next.js / React Pages?

Free forever. No plugin. 100+ widget styles. Set up in 60 seconds.

Free Walmart Review Widget

What BlooTrue customers say