# Best Practices

When it comes to best practices for using the Radical API, you should keep a few things in mind. Here are some best practices to follow

***

### Use updateElementStyles

When it comes to updating the visibility of an element, you should use the `rad.updateElementStyles` method. This method is more efficient and easier to use than updating the style attribute directly. The problem with updating the style attribute directly is that for certain elements (like Textbox), you also need to call the `updateShrink()` method to make the Textbox visible. `rad.updateElementStyles` handles this for you.
