---
title: "Discussion on \"Render State in the User Interface Another Way\" | Hashnode"
description: "Discussion on \"Render State in the User Interface Another Way\". There is another way to access state in a component. In the render() method, before the return statement, you can write JavaScript directly. For example, you could declare functions, access data from state or props, perform computations on this data,..."
url: "https://hashnode.com/posts/render-state-in-the-user-interface-another-way/620612529e350308247febea"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Render State in the User Interface Another Way](https://magnus.hashnode.dev/render-state-in-the-user-interface-another-way?utm_source=hashnode&utm_medium=feed)

There is another way to access state in a component. In the render() method, before the return statement, you can write JavaScript directly. For example, you could declare functions, access data from state or props, perform computations on this data,...

Feb 11, 2022 · 1 min read · magnus.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Magnus](https://hashnode.com/@magnus2022)

@magnus2022

  
[View profile](https://hashnode.com/@magnus2022)

Frontend Developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
