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.

Hello, can I ask about support ES6 fat arrows function?

_renderContent = (color: string) => { 
  return ( 
     <View style={{backgroundColor: color}} \>
  );
};

Thank you, redak105

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fklingcommented, Apr 7, 2017

That’s what I meant when I mentioned in an earlier post

react-docgen completely supports ES6. However it doesn’t support many of the newer experimental proposals, such as public class fields, which is what you might be using?

This is an example of a public class field, so it wasn’t supported.

However, since then we have released v3.0.0-beta which uses Babylon7, which should be able to handle this case! You can install it via npm install react-docgen@next.

0reactions
DanielRamosAcostacommented, Apr 7, 2017

I’ll give it a shot, thanks for your work!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"es6" | Can I use... Support tables for HTML5, CSS3, etc
As ES6 refers to a huge specification and browsers have various levels of support, "Supported" means at least 95% of the spec is...
Read more >
ECMAScript 6 compatibility table
Feature name▻ Current browser 98% ES6 Trans‑ piler 25% Trace... Optimisation Optimisation Optimisation Optimi... §proper tail calls (tail call optimisation)▻ 0/2 0/2 0/2 §direct recursionc No...
Read more >
JavaScript Versions - W3Schools
ECMAScript versions have been abbreviated to ES1, ES2, ES3, ES5, and ES6. ... Internet Explorer 9 does not support ECMAScript 5 "use strict"....
Read more >
ECMAScript 2015 (ES6) and beyond - Node.js
The website node.green provides an excellent overview over supported ECMAScript features in various versions of Node.js, based on kangax's compat-table.
Read more >
ES6 Support In Chromium
ES6 Support In Chromium. This is a list of ECMAScript6 features allowed in Chromium code. This is not a status list of v8's...
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