Skip to content

Update dcc.Markdown for react 18 compatibility #3199

Closed

Description

@T4rk1n

@T4rk1n
I just noticed that dcc.Mardown generates a warning in the console - which is weird because it's not a function component.
Warning: v: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead. Error Component Stack


from dash import Dash, dcc

app=Dash()
app.layout = dcc.Markdown("I have a console warning")

if __name__ == "__main__":
    app.run(debug=True)



Originally posted by @AnnMarieW in #3148

Activity

  1. added
    feature
    P1
    on Mar 6, 2025
  2. gvwilson commented on Jun 3, 2025

    @gvwilson
    Contributor

    Are we OK accepting that MathJax will always be loaded with the Markdown component? (approx. 2 Mbyte)

  3. added
    P2
    and removed
    P1
    on Jun 10, 2025
  4. AnnMarieW commented on Sep 14, 2026

    @AnnMarieW
    Collaborator

    This is closed by #3960
    Available in dash 4.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions