• TIPS

    TIPS

    • Introduction
    • Inline Styles
    • If-Else in JSX
    • Self-Closing Tag
    • Maximum Number of JSX Root Nodes
    • Shorthand for Specifying Pixel Values in style props
    • Type of the Children props
    • Value of null for Controlled Input
    • componentWillReceiveProps Not Triggered After Mounting
    • Props in getInitialState Is an Anti-Pattern
    • DOM Event Listeners in a Component
    • Load Initial Data via AJAX
    • False in JSX
    • Communicate Between Components
    • Expose Component Functions
    • this.props.children undefined
    • Use React with Other Libraries
    • Dangerously Set innerHTML