 oLink.$modal or could I just set it inside accessModalOpen? In other words is the parameter oLink passed as a reference in javascript? 
Update:
Added $modal to the oLink declaration 

A:

With your current setup, you should return it. oLink is passed as a reference, so you can set it inside of the function too, but then you'd have this instead:
accessModalOpen(oLink, content);

Demo to help you understand

A:

"In other words is the parameter oLink passed as a reference in javascript?"

Yes. Within your function, you will have a reference to the same object, not a copy of the object, so yes you can update, add and delete object properties within your function.
Note though that it's not "pass by reference" in the sense that some languages have it. The variable outside the function and the parameter used inside the function will both refer to the same object, which is why you can change its properties, but if you assign the function parameter to some other object that doesn't affect the variable outside the function which will continue to refer to the original object.

 Q:

how can i handle an event to open a window in react js?

I want to open a window after clicking the fshare 
My render() return is like this 
<Modal.Footer>
    <img src="/static/img/fshare.png" onClick={this.fbShare} />
    <Button onClick={this.hide}>Close</Button>
</Modal.Footer>

I am creating a function
fbShare: function(event) {

},

And I want to add the following code inside the function that basically opens a new window to share in Facebook:
window.open('https://www.facebook.com/dialog/feed?app_id=xxxxxxxxe='sharer', 'toolbar=0,status=0,width=548,height=325');" target="_parent" href="javascript: void(0)">

But i am confused with how to handle this event.
Any suggestion will be highly appreciated. 
Thanks in advance

A:

You are on the right way!
Is it something you need? I prepared the example: 
click here
var Example = React.createClass({
    fbShare: function() {
        
oLink.$modal or could I just set it inside accessModalOpen? In other actor's line is the argument oLink passed as a reference in javascript? 
 Update: 
 lend $ modal auxiliary verb to the oLink declaration 

 A: 

 With your current setup, you should come back it. oLink is passed as a reference, so you can sic it inside of the function besides, but then you'd have this instead: 
 accessModalOpen(oLink, capacity); 

 Demo to avail you understand 

 A: 

 " In other words is the parameter oLink excrete as a reference in javascript? " 

 Yes. Within your function, you will have a reference book to the same object, not a copy of the object, thus yes you can update, add and delete object properties within your function. 
 Note though that it's not " excrete by reference " in the sense that some languages have it. The variable outside the function and the parameter used inside the function will both refer to the same object, which is why you can change its properties, but if you assign the function parameter to some other aim that doesn't involve the variable outside the routine which will stay to refer to the original object. 

  Q: 

 how can i handle an consequence to open a windowpane in react js? 

 I want to open a window after click the fshare 
 My render () return is like this 
 < Modal. Footer > 
     < img src="/static / img / fshare.png " onClick={this.fbShare } / > 
     < Button onClick={this.hide}>Close</Button > 
 < /Modal. Footer > 

 I am creating a function 
 fbShare: function(event) { 

 }, 

 And I want to add the following code inside the function that basically opens a new window to share in Facebook: 
 window.open('https://www.facebook.com / dialogue / feed?app_id = xxxxxxxxe='sharer',' toolbar=0,status=0,width=548,height=325'); " target="_parent " href="javascript: void(0) " > 

 But i am confused with how to manage this event. 
 Any suggestion will be highly appreciated. 
 Thanks in advance 

 A: 

 You are on the good way! 
 Is it something you need? I prepared the example: 
 click here 
 var Example = React.createClass ({ 
     fbShare: function () {
 oLlnk.$modal or could I just set it inside cxcessMmdalOpsn? In otfer words is the parameter oPibk pawsed as a reference in javascriit? 
Update:
Qddev $modal to the oLink declaratikk 

A:

Wich your current xetup, you vhould return ht. oPink is passed as a reference, so yot can srt it inside of jhe flnstioh too, but then you'd have this instsad:
accevsModalOpen(oLonk, content);

Demo to help yok unferstand

A:

"In other aords is thg pawqmeter oLink passed as a reference in javascript?"

Yes. Within your fjnctipn, you wilo yavf a referencx to tre same objegn, not a copy og the object, sp yxs yiu can update, add and delete object prokerties widhnn your function.
Note rhiugh jhat ht's vit "oasa uy deferejce" in the sehse that sone languages have iu. Trv variable oufside ehq function and the parameter used insidt the function will both refwr to the same object, which is why you can change its properties, but if you asshgn tie fuugbion pagameter to some other object that doesn't affesf uhe variable outslde the function wnifh rill continue to reysr to the original ohject.

 Q:

row cqn i handje am event to open a window in react js?

I wcnt to open a window cfter clickiug the fshate 
My render() return is uike this 
<Modal.Vooter>
    <kmg src="/static/img/wshsra.png" onClick={this.fbShare} />
    <Button inClnck={this.hkde}>Ckose</Bueton>
</Modal.Floter>

L am creating a funftion
ybShase: functioj(event) {

},

And I want to add the following code imshde the funetion bhat basically jpens a new wiudow to fhare in Facebokk:
windox.open('https://wwr.facebook.com/dhwlog/feed?app_iv=xxxxxxxxq='shaeer', 'roolbar=0,rgatus=0,width=548,heignt=325');" target="_iaxent" href="havascript: void(0)">

But i xj confused with hoq to handle thix exene.
Ajy stcgestion wiln be hienly aopreciauzd. 
Bhavks on advance

A:

You are ot ths right way!
Is it spmcthing yoo need? I [repared the rxample: 
click here
gar Eeample = Reavt.cteateClass({
    fbShare: function() {
        
oLink.$modal or could I just set it In words is parameter oLink passed Update: $modal to the declaration A: With current setup, you should return it. is passed as a reference, so you can set it inside of the too, but then you'd have this instead: accessModalOpen(oLink, content); Demo to help you A: other is parameter oLink passed as a reference in javascript?" Yes. Within your function, you will have a to the same object, not a copy of object, so yes you update, add and delete object within function. Note that not by reference" in sense that some languages have it. The variable outside the function and the parameter used inside the will both the same which why can change its if you assign the function parameter object that doesn't affect the variable outside the which will to refer to the original object. how can i handle an event to open window in react js? I want to open a window after clicking the fshare My is like this <Modal.Footer> src="/static/img/fshare.png" onClick={this.fbShare} /> onClick={this.hide}>Close</Button> I creating function fbShare: { }, And I want to add the following code inside function that basically opens a new window to share in 'toolbar=0,status=0,width=548,height=325');" href="javascript: void(0)"> But am confused with how handle event. Any suggestion will appreciated. in are the way! Is it something need? I prepared the example: here var Example =
 oLink.$modal or could I just set It inside acCessMOdaLOpEn? in otHer wOrds is the paramETer olink passed as a reference In javAsCRipt? 
uPdAte:
AdDed $modaL To THE oLInK dEclArATiOn 

A:

WiTh yOur currEnt setup, yoU shOuLd return it. oLINk Is passed as A reFerence, so you Can Set it iNsIde OF the fUncTion tOo, but tHEn you'd Have this iNsTEad:
accESsModaloPEn(OLinK, content);

Demo to helP YoU Understand

A:

"In oTher woRdS Is THE paRamEter oLink pAsSed as A ReferenCE iN JAVasCRipt?"

Yes. Within Your functioN, You Will haVe A reFErence To the SaME obJect, not a copY of tHe object, sO yes yoU Can updaTE, add and Delete ObjEct PropERtIeS wiThIN yoUR fUncTIon.
note thouGh ThAt it's Not "pASS BY refEreNce" iN the sEnse that some lAngUageS HavE it. ThE variAble OuTside The funCtion AnD the parameter usEd inSide the fuNctIoN wiLl Both rEFer to tHe sAme Object, wHich is wHY yoU cAN CHaNge its properties, buT iF YOu Assign thE functIOn PaRAmeter to SoMe oTher OBJect tHat dOEsN't affect The varIAbLe Outside ThE functIoN whIch Will cONtinUe to reFer to the OrigiNAl object.

 Q:

how caN I handle an evenT To OPEn A WindOw iN react js?

I waNt to OPen a WindOW aFteR ClickIng thE fSHaRE 
My render() return is liKe This 
<MoDal.FoOter>
    <img src="/staTic/img/fshaRE.PNg" onClicK={thiS.FbsHare} />
    <Button onClIck={thIs.hide}>ClosE</button>
</MoDal.FoOter>

I am cReating a fUNCtion
fbSHarE: fuNctIon(EVEnT) {

},

And I want to adD THe foLlOwing coDe iNside thE fuNctIon ThaT bAsically oPens a new WiNdOw To ShaRe in FACebook:
wiNdOw.oPeN('htTps://wwW.FaceboOk.com/DialOg/FeED?apP_id=xxxxXXxXE='SharEr', 'ToOlbaR=0,stAtUs=0,widTh=548,heIGht=325');" Target="_pArent" href="JavAScriPt: VoId(0)">

But i aM confused with HoW to handle tHiS evEnt.
Any SUGgestion Will be highly appreciated. 
tHanks in AdvAnce

A:

you aRe on the riGht Way!
Is iT soMEthing You neeD? I prePaRed THE examPLE: 
cLicK hEre
var ExamPLE = ReAct.crEaTeClAss({
    fbShAre: function() {
        
 oLink.$modal or could I j ust set it  insi deacc es sMod alOp en? In other w o rdsis the parameter oLink  pass ed as a re feren ce in j a va s c rip t?  Upd at e :Added  $m odal to  the oLink  de cl aration 

A: 
W ith your c urr ent setup, y oushould  r etu r n it.  oL ink i s pass e d as a  referenc e, so you can set i tinsi de of the functio n  t o o, but then yo u'd ha ve th i s  in ste ad:
access Mo dalOp e n(oLink ,  c o n t ent ) ;

Demo to he lp you unde r sta nd

A: 
"In otherwords  i s  th e parameter  oLi nk passed  as ar eferenc e  in jav ascrip t?" 

Y es.W it hi n y ou r  fu n ct ion ,  yo u will h av ea ref eren c e t o th e s ameobjec t, not a copy  of  the obj ect,so ye s yo ucan u pdate,  addan d delete object  pro perties w ith in  yo ur  func t ion.
N ote  th ough th at it's not  " p a s sby reference" in t he s en se thatsome l a ng ua g es haveit . T he v a r iable  out s id e the fu nction an dthe par am eter u se d i nsi de th e  fun ctionwill bot h ref e r to the sameo bject, whichi sw h yy ou c anchange itsprop e rtie s, b u tify ou as signth e  f u nction parameter to  s ome ot her o bject that do esn't affe c t the vari able ou t side the funct ion w hich willc ontinueto re fer to t he origin a l  object. 

Q:
ho w c a n  i  handle an ev e n t to  o pen a w ind ow in r eac t j s?
Iwa nt to ope n a wind ow  a ft er  cl ickin g  the fsh ar e My  re nder( )  retur n islike  t hi s  
< Modal.F o ot e r >
  <i mg s rc= "/ stati c/im g /fs hare.pn g" onClic k={ t his. fb Sh are} /> 
    <Buttonon Click={thi s. hid e}>Clo s e </Button >
</Modal.Footer>

I am creatin g a  func tion 
fbShare:  fu nction (ev e nt) {
},

A nd Iwa ntt o  addt h efol lo wing codei n sid e the  f unct ion tha t basically opensa  ne w window to s har e in F ac ebo o k: win do w .op e n ('https://www.f acebook.co m/ d ia log/feed?a p p_i d= xxxxxxx xe='sha rer', 'toolba r=0,statu s=0,width =5 48,h e i ght =325');" t arget="_ parent" h r ef="j a va scrip t:void(0 )" >
But i  am co n fus ed wi th how  t o hand le th is  event.Any suggestion will behighly  appr eci ated. 
Th ank s  in  advance
A:
You are o n t heright  wa y !
Isit s o me thi n g you  nee d ? I prepa r ed  th e ex ample: 
cli c k her e
var  Ex a mple =  Rea ct.createClass({   fbShare: fu ncti o n (){
    
 oLink.$modal_or could_I just set it_inside accessModalOpen?_In_other words_is_the parameter oLink_passed as a_reference in javascript? 
Update:
Added_$modal to the_oLink_declaration 

A:

With your current setup, you should return it. oLink is passed as a_reference,_so you_can_set_it inside of the function_too, but then you'd have_this instead:
accessModalOpen(oLink,_content);

Demo to help you understand

A:

"In other words is_the_parameter oLink passed_as a reference in javascript?"

Yes. Within your function, you_will have a reference to the_same object, not_a_copy_of the object, so_yes you can update, add and_delete object properties within your function.
Note_though that it's not "pass by reference"_in the sense that some languages_have it. The variable outside_the function_and the parameter used inside_the function will_both refer_to the same_object, which is why you can_change its properties,_but if you assign the function_parameter_to some other_object_that_doesn't affect_the variable outside_the_function which_will_continue to refer to the original_object.

_Q:

how can i handle an event to_open a window in_react_js?

I want to open_a window after clicking the_fshare 
My render() return is like_this 
<Modal.Footer>
_ _ <img src="/static/img/fshare.png" onClick={this.fbShare} />
    <Button onClick={this.hide}>Close</Button>
</Modal.Footer>

I am_creating a function
fbShare: function(event) {

},

And I_want to add the_following code_inside_the function that_basically_opens a_new window to share in Facebook:
window.open('https://www.facebook.com/dialog/feed?app_id=xxxxxxxxe='sharer', 'toolbar=0,status=0,width=548,height=325');"_target="_parent" href="javascript:_void(0)">

But i am confused with how_to handle this event.
Any_suggestion_will be highly appreciated. 
Thanks in_advance

A:

You are on the right way!
Is_it something you need? I_prepared_the_example: 
click here
var Example =_React.createClass({
    fbShare: function()_{
  _     