Overview
The How-to guide enumerates steps to export a component (React basaed) to a vanilla-js project.
Pre-requisite: Create a Search UI
You can follow this 👇🏻 step-by-step tutorial to build a new Search UI, incase you already don't have one.
Note: The tutorial uses a Search UI built on top of faceted-search template, consider using the same template to match exact steps.
The Steps
Code Snippets
Step 15: Codepen.io code snippet
<div id='root'></div>
<script src="<PASTE_BUNDLE_LINK_COPIED_IN_STEP_13" />
Important Links
-
Starter CodeSandbox
https://codesandbox.io/s/export-a-component-to-vanilla-project-m7o6er