Open davidbutz opened 4 years ago
Update: If i change screen size, I can see the rendering, but not until I actually resize the browser window.
class PieChart extends PureComponent { constructor(...args) { super(...args);
_defineProperty(this, "state", {
height: (this.props.height !== "") ? parseInt(this.props.height ): 0,
width: (this.props.width !== "") ? parseInt(this.props.width ) : 0
});
}
I added in the height and width- which were 0 before. Am i doing something wrong ? This works, but the other never renders. No "Event" to reset the height and width.
Webpack config snippet:
{ use: {
loader: "babel-loader", options: { presets: [ "@babel/preset-env", "@babel/preset-react", "@babel/preset-flow" ], plugins: [ '@babel/plugin-proposal-class-properties', "@babel/plugin-transform-runtime" ] }, },
Simply no render: no svg tag in web. I am using react-native-web... Any clues would help.