Take a look at the TODO MVC example to see how everything is put together.
You can use Paperclip with Webpack by installing the loader:
Also, be sure that you also have the following dependencies installed (If you're using NextJS, then you can skip this step):
Paperclip emits CSS files that need to be loaded, so this is why you need to install additional dependencies.
After that, you can can include
paperclip-loader in your webpack config rules:
☝ be sure that you have a paperclip.config.json file.
For context, here's what your entire Webpack config might look like:
That's it! from there you can start using Paperclip in your UIs. For example:
Then, in React code:
☝ This should render: