How to prevent component from rendering?

Posted by Andre Scott | Updated on

You can prevent component from rendering by returning null based on specific condition. This way it can conditionally render component.

In the above example, the greeting component skips its rendering section by applying condition and returning null value.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers