1. -Add platform code.
2. -Decide the id of component before it is created.