UI stuff - using v1 and "next" versions together
I want to use the released "coming" components from the "next" Material UI branch with the current v1 components and smoothly move them to "next" like the releases of the next components. Do the old and new versions have any compatibility?
+3
Maxim
source
to share
1 answer
Take a look at this comment in the transfer problem:
https://github.com/callemall/material-ui/issues/7195#issuecomment-314547601
Use yarns and add dependencies like this:
yarn add material-ui@latest
yarn add material-ui-next@npm:material-ui@next
After that, you can use the current and the next component like this:
import FlatButton from 'material-ui/FlatButton'; // v0.x
import Button from 'material-ui-next/Button'; // v1.x
+1
Zoker
source
to share