fix sample project configuration
allow rendering Component directly.
write doc