Skip to content

getting a list of <li> elements from function doesn't render in <ul> in JSX #4

@etture

Description

@etture

When getting a list of JSX elements from a function in React, make sure there are no async action going on in the render() function. To fetch items from the server, perform the fetch action asynchronously in a separate place, such as `componentDidMount'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ReactReact relatedmemoMemo on tips and notes

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions