Skip to content

Update dcc.Markdown for react 18 compatibility #3199

@T4rk1n

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2considered for next cyclefeaturesomething new

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions