Как избавиться от этого предупреждения о выборе класса имя-класса? - PullRequest
0 голосов
/ 01 июня 2018

Warning: the behaviour of 'className' has changed between 2.0.0-beta.2 and 2.0.0-beta.3. You can now use className to specify the class name of the outer container, and classNamePrefix to enable our provided BEM class names for internal elements. The className prop will have no effect on internal elements when 2.0.0 is released.

1 Ответ

0 голосов
/ 10 июня 2018

Я избавился от предупреждения, добавив classNamePrefix проп. <Select classNamePrefix="foo" {...restOfTheProps} />

...