For Dynamic Components perhaps see here:
For CompCreator (a slightly simpler but no less effective dynamic components extension):
Do some reading, follow some of the examples.