choojs / choo

:steam_locomotive::train: - sturdy 4kb frontend framework
https://choo.io/
MIT License
6.78k stars 595 forks source link

Add documentation on components #673

Closed tornqvist closed 6 years ago

tornqvist commented 6 years ago

Resolves #662

A first take on documentation of components in Choo and the new component cache. I wasn't sure about how much detail to go into about the component API seeing as nanocomponent has some excellent docs of its own. Also, I'm not 100% sure it's the best idea to drag in mapbox and and the geolocation API in the example but seeing as the text speaks of 3rd party libraries, it made sense to illustrate that. Maybe the nanocomponent button example or something like that would suffice?

Would very much appreciate feedback from @yoshuawuyts, @bcomnes and @s3ththompson as they were instrumental in brining this into Choo.

YerkoPalma commented 6 years ago

LGTM!