quarkly / atomize

library for creating atomic react components
https://atomize.quarkly.io
MIT License
67 stars 6 forks source link

Question: Nextjs implementation docs #28

Open gregg-cbs opened 3 years ago

gregg-cbs commented 3 years ago

Would it be possible to have better Nextjs implementation docs?

I have read the styletron implementation docs but its tough to know what atomize does under the hood and what of styletron i need to implement.

Your docs are very impressive by the way, nice looking and comprehensive.

eddort commented 3 years ago

Thank you for your interest in the lib!) I have created a repository to showcase an example: nextjs+atomize: https://github.com/Eddort/atomize-nextjs-example

In Step-by-step order:

  1. Create a project and install dependencies
  2. Add scripts
  3. Create a pages folder and a first page
  4. Add styled components
  5. Add a babel plugin and a custom .babelrc file
  6. Add @quarkly/atomize
  7. Create a custom _document.js file