Skip to content

Instantly share code, notes, and snippets.

@ravewebdev
Created July 9, 2020 18:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ravewebdev/3d7cd4e377578e48eef0e718f9a61801 to your computer and use it in GitHub Desktop.
Save ravewebdev/3d7cd4e377578e48eef0e718f9a61801 to your computer and use it in GitHub Desktop.
2.2.2. Re-render blocks with frontend component
trackers.forEach( ( tracker ) => {
// Code from 2.2.1. here...
render(
<FrontendTracker
dataAttributes={ attributes }
className={ trackerClass }
/>,
tracker
);
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment