add renderComponent snippet