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,...
Markdown supported · ⌘↵ to post
No responses yet.