question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

3 React warnings

See original GitHub issue

These 3 warnings appears when I stay in dev enviroment:

Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you’re not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class

Warning: Accessing PropTypes via the main React package is deprecated, and will be removed in React v16.0. Use the latest available v15.* prop-types package from npm instead. For info on usage, compatibility, migration and more, see https://fb.me/prop-types-docs

Warning: Accessing factories like React.DOM.div has been deprecated and will be removed in v16.0+. Use the react-dom-factories package instead. Version 1.0 provides a drop-in replacement. For more info, see https://fb.me/react-dom-factories

render() { const state = this.props.state;

    const selectRowAlarms = {
        mode: 'radio',
        clickToSelect: true,
        onSelect: this.onAlarmsRowSelect,
        bgColor: '#FDFD96',
        hideSelectColumn: true
    };

    const selectRowMeasures = {
        mode: 'radio',
        clickToSelect: true,
        onSelect: this.onMeasuresRowSelect,
        bgColor: '#FDFD96',
        hideSelectColumn: true
    };
    return (<BootstrapTable data={channelsDVBT} maxHeight={200} scrollTop={ 'Bottom' } selectRow={ selectRowMeasures } striped hover>
                        <TableHeaderColumn isKey dataField='id'>Channel</TableHeaderColumn>
                        {labels.map((label, i) => {
                            return <TableHeaderColumn key={i} dataField={label.id}>{label.label}</TableHeaderColumn>
                        })}</BootstrapTable>
    );
}`

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
AllenFangcommented, Aug 1, 2017

@wallena3 v3.5.0 still use PropTypes from react, I will upgrade to v4.0.0 as official release in this weekend,

0reactions
AllenFangcommented, Aug 6, 2017

v4.0.0 released ✌️

Read more comments on GitHub >

github_iconTop Results From Across the Web

Strict Mode - React
StrictMode currently helps with: Identifying components with unsafe lifecycles; Warning about legacy string ref API usage; Warning about deprecated findDOMNode ...
Read more >
Common warnings in ReactJS - LinkedIn
1. ComponentWillReceiveProps has been renamed, and is not recommended for use. · 2. React does not recognize prop on DOM element: · 3....
Read more >
facebook/create-react-app - Warnings are treated as errors
Describe the bug. Any warning is treated as an error, and will make compilation fail. This is especially annoying for eslint warnings, ...
Read more >
Do React console warnings need to be dealt with before ...
I've been learning to code for about 3 months now and I've gotten pretty far with an APP ...
Read more >
The True Delight of React's Error and Warning Messages
The message: Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component />...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found