Created
July 9, 2020 18:44
-
-
Save ravewebdev/3d7cd4e377578e48eef0e718f9a61801 to your computer and use it in GitHub Desktop.
2.2.2. Re-render blocks with frontend component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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