|
this text is not being rendered properly in Quick Answers section
Hi all,
i'm doing my first steps in react.
this code should write "On" but i get "App.js: Unexpected token, expected ( "
what am i missing?
<pre lang="javascript">
import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';
class Light extends React.Component {
constructor(props) {
super(props);
this.state = {light:"On"};
};
function formatLightState() {
return <h1>{this.state.light}</h1> ;
}
render() {
return (
<div>
{this.formatLightState()}
</div>
);
}
}
class App extends React.Component {
constructor(props) {
super(props);
}
renderLight(){
return <Light />
}
render() {
return (
<div>
{this.renderLight()}
</div>
);
}
}
export default App;
this is the link that was giving me hard time
Problem creating the simplest react progrem[^]
I do not fear of failure. I fear of giving up out of frustration.
modified 8-Jan-17 19:09pm.
|
|
|
|
|
Fixed.
cheers
Chris Maunder
|
|
|
|
|
Sorry, but writing a comment becomes more and more difficult here. Messages will be "reformated" some times in a strange way.
As mentioned in some threads before: Better do not sniff and manipulate Messages automatically.
Only my non counting 2 whatever
Bruno
Baoh!!! Preview in comments is meanwhile a mess, P L E A S E fix up such minor things!
This site should represent professional programmers? At the moment I have my doubts sorry.
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
I can help if you're specific. What's happening and what are you expecting, and is there some sample text you can send me for me to test?
In the meantime, do you have "Use Markdown formatting (Markdown formatting tips)" checked? If so, try unchecking it.
cheers
Chris Maunder
|
|
|
|
|
I don't need help, I try to help to let CP come back to a reliable state I knew before some time.
I did not use any "special" thing, I simply tried to use the site like I did in the past.
The following maybe sounds strange/unfriendly, but what I try to communicate is simply technical and please take into acount I'm not native english.
a.) Preview in comments (Q&A I don't checked, was not able to answer )
Preview in message replies does not work anymore. In the past, preview of a comment was updated imediatelly. At the Moment, preview of a comment shows my very first entry, but does not Show any modification....(IE11?)
b.) Paste of links (formatted e.g. with the help of Q&A Editor) will be reformatted to "non links", e.g if it survives: Nothing special
Again, I do not like to be nice and I also do not like to be an a**hole... I only try to help, because I like this site and it helped me then and when and therefore I like to give somthing back
Bruno
modified 19-Jan-21 21:04pm.
|
|
|
|
|
Interesting.
Looks like when you pasted you chose "paste as code". I've updated your profile so it will (be default) paste as HTML.
With regards to the preview: I'm deploying updates as we speak, and during that time things like previews can be a bit dodgy while the site spools up.
cheers
Chris Maunder
|
|
|
|
|
"paste as code": No, never! That for sure! Because I'm the WWW noob I always choose "paste as it is" because I like to have (try to have) the control. Thatswhy I "missuse" Q&A Editor to Format the links [edit]before[/edit];)
Bruno
I hate me for this, but as mentined I don't like to be only friendly and finally I think it is fair to be open:
"I'm deploying updates as we speak, and ..."
No it does not count after reading this again and again. Be sure I know excatly in what Situation you/we are but please why you try to "sell" the same sh*t to us like our bosses sells for us?
to
Bruno
[Edit]
Before some month it was easy also for me as an old man to add a link to a message in Soap or anywhere.... now it is only a fight, Not impossible to win, but simply an unnesesary fight
{/Edit]
modified 19-Jan-21 21:04pm.
|
|
|
|
|
- Your links were surrounded by PRE tags. Either you added them (which means they will be auto-HTML encoded because the system assumes everything inside a PRE block is literal, give or take a few spacial tags) or when you pasted you chose "Paste as code". If there's a third explanation that will reveal a bug I'd love to know so I can fix it.
- Is the message preview working for you as you type your replies to forum messages and / or QA posts? Regardless of your personal feelings towards my being transparent, we do see the preview stop working briefly during deploys. If you're seeing preview fails continually then please let me know the browser / OS you're using and I can see if I can replicate and fix.
cheers
Chris Maunder
|
|
|
|
|
My favorite method to paste "whatever it is" is "paste as it is" too, Bruno!
As to QA page... i use quite often "paste as code" and it helps, but i need to add specific laguage name, such as "VB.NET", "C#", etc.
Cheers,
Maciej
|
|
|
|
|
when I reply to a message, I select the text I want to Quote, I click the "Quote selected text" button and it acts like I've tried to Post because I get a message saying items that need attention -
- you must supply some content
- There were problems with your new post
EDIT (only on Pete' posts - I understand if this is because you dont want what he says repeated).
modified 6-Jan-17 8:53am.
|
|
|
|
|
Pom Pey3 wrote: when I reply to a message, I select the text I want to Quote, I click the "Quote selected text" button and it acts like I've tried to Post because I get a message saying items that need attention
Tried exactly this with the above quote... works fine.
The quick brown ProgramFOX jumps right over the Lazy<Dog> .
|
|
|
|
|
|
I recognised that too when replying to this post: The Lounge[^].
But for all other posts it seems to work.
[EDIT]
It seems to apply only to posts from Pete. I tried it here, in the Lounge, and in the forum of ones of his articles.
[/EDIT]
modified 6-Jan-17 7:55am.
|
|
|
|
|
You're correct, just Petes.
|
|
|
|
|
Well, it looks like my posts are available for quoting again.
This space for rent
|
|
|
|
|
All the comments appear to have disappeared from my answer to this question. Part of my GUI is slow[^]. This is on Web 02.
This space for rent
|
|
|
|
|
Nevermind. They're back now.
This space for rent
|
|
|
|
|
You mean they appear to have appeared?
|
|
|
|
|
Indeed. They appeared to have disappeared and now they have appeared to appeared.
This space for rent
|
|
|
|
|
Appearances can be decieving.
(We actually have a proper fix in place that will be deployed later today)
cheers
Chris Maunder
|
|
|
|
|
Taken that you have deployed the new version already the problem still seems to exist. Sometimes comments are shown and sometimes not.
For example in solution 1, Sql server:return column names based on record values I sometimes see all comments, sometimes only my own comment and sometimes none of them. However at the same time I see comment on solution 2 (or at least I think I see them all)
|
|
|
|
|
Thanks mate. We'll dig back in and have another crack. These things are Heisenbugs
cheers
Chris Maunder
|
|
|
|
|
Just noticed that the little red box on the left side of my account name (the one which indicates how many messages I have) also seems to disappear once in a while. Not sure if this is related though...
|
|
|
|
|
This wasn't a problem when I started rolling my big eyes, and I don't think it was the last time I used it (a month or three ago)...
Example 1[^]
The Insider News[^]
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
modified 5-Jan-17 9:01am.
|
|
|
|
|
ARGH.
This is why developers re-invent the wheel. Everytime they use someone else's wheel they have a bumpy ride.
cheers
Chris Maunder
|
|
|
|