moroshko / react-scanner

Extract React components and props usage from code.
MIT License
563 stars 40 forks source link

Feature Request- Parse object props #74

Open ankitverma0601 opened 5 days ago

ankitverma0601 commented 5 days ago

react-scanner is not able to parse object props and it is giving such expressions in result- "(ObjectExpression)" or "(Identifier)". It is able to parse simple string values "Box": { "instances": [ { "importInfo": { "imported": "Box", "local": "Box", "moduleName": "@mui/material", "importType": "ImportSpecifier" }, "props": { "pb": 4, "display": "(ObjectExpression)", "alignItems": "center", "textAlign": "(ObjectExpression)", "justifyContent": "space-between" }, "propsSpread": false, "location": { "file": "/Users/temp/dashboard/src/components/Footer/index.tsx", "start": { "line": 12, "column": 7 } } }, ] }