Shmew / Feliz.MaterialUI

Feliz-style Fable bindings for Material-UI
https://shmew.github.io/Feliz.MaterialUI/
MIT License
70 stars 19 forks source link

ExpansionPanel was renamed to Accordion #57

Closed halcwb closed 3 years ago

halcwb commented 3 years ago

This is the warning message from material-ui:

react_devtools_backend.js:2273 Material-UI: the ExpansionPanel component was renamed to Accordion to use a more common naming convention.

Using:


{
    "private": true,
    "scripts": {
        "start": "webpack-dev-server",
        "build": "webpack -p"
    },
    "devDependencies": {
        "@babel/core": "^7.6.4",
        "@babel/plugin-transform-runtime": "^7.6.2",
        "@babel/runtime": "^7.6.3",
        "babel-loader": "^8.0.5",
        "copy-webpack-plugin": "^6.1.0",
        "core-js": "^3.3.2",
        "css-loader": "^4.2.1",
        "fable-compiler": "^2.10.2",
        "fable-loader": "^2.1.8",
        "file-loader": "^4.2.0",
        "html-webpack-plugin": "^3.2.0",
        "remotedev": "^0.2.9",
        "resolve-url-loader": "^3.1.0",
        "sass": "^1.26.10",
        "sass-loader": "^9.0.3",
        "selfsigned": "^1.10.8",
        "style-loader": "^1.2.1",
        "terser": "^4.3.9",
        "webpack": "^4.41.2",
        "webpack-cli": "^3.3.9",
        "webpack-dev-server": "^3.11.0"
    },
    "dependencies": {
        "@date-io/core": "^1.3.13",
        "@date-io/date-fns": "^1.3.13",
        "@material-ui/core": "^4.11.0",
        "@material-ui/icons": "^4.9.1",
        "@material-ui/lab": "^4.0.0-alpha.56",
        "@material-ui/pickers": "^3.2.10",
        "date-fns": "^2.16.1",
        "prop-types": "^15.7.2",
        "react": "^16.13.1",
        "react-dom": "^16.13.1",
        "react-markdown": "^4.2.2",
        "recharts": "^1.8.5",
        "remark-toc": "^7.0.0"
    }
}
cmeeren commented 3 years ago

Just use Mui.accordion. This is equivalent to using MUI in JS directly instead of through Feliz.MaterialUI. Both components/names are documented and available for use in MUI, and thus bindings are available for both in Feliz.MaterialUI. As I understand it, this has nothing to do with the bindings. When MUI removes ExpansionPanel, it will also be removed from the bindings.

Feel free to clarify if I've missed something, though.

halcwb commented 3 years ago

@cmeeren : My bad, thanks!