Quantcast
Channel: Console logging for react? - Stack Overflow
Browsing all 4 articles
Browse latest View live

Answer by vsync for Console logging for react?

If you want to log inside JSX you can create a dummy component which plugs where you wish to log: const Console = prop => ( console[Object.keys(prop)[0]](...Object.values(prop)) ,null // <- React...

View Article



Image may be NSFW.
Clik here to view.

Answer by user1095118 for Console logging for react?

Here are some more console logging "pro tips": console.table var animals = [ { animal: 'Horse', name: 'Henry', age: 43 }, { animal: 'Dog', name: 'Fred', age: 13 }, { animal: 'Cat', name: 'Frodo', age:...

View Article

Answer by patrick for Console logging for react?

If you're just after console logging here's what I'd do: export default class App extends Component { componentDidMount() { console.log('I was triggered during componentDidMount') } render() {...

View Article

Image may be NSFW.
Clik here to view.

Console logging for react?

I'm super new to React and I'm trying to get it set up for Meteor and piecing stuff together from other sources too. One of these other sources set up console logging for the app, but I'm going the...

View Article
Browsing all 4 articles
Browse latest View live




Latest Images