Mam ten post w moim konsoli:Nie mogę korzystać z komponentów materiał-ui po aktualizacji do [email protected]
Failed Context Types: Required context
muiTheme
was not specified inAppBar
AppBar.js:158 Uncaught TypeError: Cannot read property 'prepareStyles' of undefined
mam tylko takie AppBar w moim Komponentu myślę to powinno działać, ale ... tutaj mój bardzo prosty kod:
import React from 'react';
import {AppBar} from 'material-ui';
export class MyComponent extends React.Component {
render() {
return (
<div>
<AppBar
title="Title"
/>
</div>
);
}
}
dzięki za pomoc ...
OK, dostałem to !!! Dzięki wielkie! –
To rozwiązuje problem dla mnie. Dzięki! –
Dlaczego są one bardziej skomplikowane? Byłoby wspaniale, gdybym mógł napisać mniej kodu, aby to działało. – newguy