Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up a demo page #6

Open
helior opened this issue Mar 28, 2015 · 2 comments
Open

Set up a demo page #6

helior opened this issue Mar 28, 2015 · 2 comments

Comments

@helior
Copy link
Owner

helior commented Mar 28, 2015

No description provided.

@plh97
Copy link

plh97 commented Jul 1, 2017

oh,it can't not work.
if i want to highlighter this code in jsx

function getKey(k){
                return 'a key named ${k}';
              }

              //bad
              const obj = {
                id : 5,
                name:"San francisco"
              };
              obj[getKey('enabled')] = true;

              //good
              const obj = {
                id:5,
                name:"san francisco",
                [getKey('enabled')]:true
              };

@plh97
Copy link

plh97 commented Jul 1, 2017

the return make it can't not work,,
how can i fix this essius

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants