Update documentation to recommend simplified style.

This commit is contained in:
Emil Stenström 2021-03-10 22:42:52 +01:00
parent 97777d3318
commit f60403f41e

View file

@ -161,8 +161,8 @@ class Calendar(component.Component):
return "[your app]/components/calendar/calendar.html"
class Media:
css = {'all': ['[your app]/components/calendar/calendar.css']}
js = ['[your app]/components/calendar/calendar.js']
css = '[your app]/components/calendar/calendar.css'
js = '[your app]/components/calendar/calendar.js'
```
And voilá!! We've created our first component.