Inline SVGs and React

Thu 24 Sep 2015
I faced Today a problem with SVGs and React. I hope this solution (Includes jQuery but can be easily changed to plain javascript), might help you on your quest. I had a few SVGs around a website, and I needed to change color and size mainly, and found that the render function did not work the way I expected (It did not transform the svg image into an inline svg, therefore, the element couldn't be manipulated from css). So first, I added the code inside drawSVG on isolated js file. That worked like a charm, until I use transitionTo, and re-render a view. In my case, it was a sign-in transition when not logged. Basically, transitionTo destroyed my SVGs and turned 'em into images again, plain, no styles. If my solution worked once, it should work n times. So I moved into the main React.createClass() function the following code: drawSVG: function() { $('img.svg').each(function(){ var $img = $(this); var imgID = $img.attr('id'); var imgClass = $img.attr('class'); var imgURL = window.location.origin + $img.attr('src'); $.get(imgURL, function(data) { var $svg = $(data).find('svg'); if(typeof imgID !== 'undefined') { $svg = $svg.attr('id', imgID); } if(typeof imgClass !== 'undefined') { $svg = $svg.attr('class', imgClass+' replaced-svg'); } $svg = $svg.removeAttr('xmlns:a'); $img.replaceWith($svg); }, 'xml'); }); }, componentDidMount: function(){ this.drawSVG(); }, componentDidUpdate: function(){ this.drawSVG(); }, Basically, every time I render or mount a new Class, it runs drawSVG function. Probably there are better ways to implement this. But, so far so good, it worked. And I'm happy with it!
References:

Music to the world

Sun 13 Sep 2015
I've been connected to the music since I was a kid. From tango to jazz, from rock to classic, I heard music everywhere. But it is Today the day I made a difference. Today is the first time I have uploaded an album to the internet, not as an artist, but as a guy who might represent bands and artist around the world. This is a learning process though, a learning process that just began. Thanks [Domo](http://www.cancionesimpuras.com.ar/), my very first band.
References:

A great game, requires great music.

Sat 28 Jun 2014

For two hours, mate and facturas, and a bit of jazz, I explained to Javier Zacharias the concept of the game and he shared his thoughts about it. Javier is a great musician and he will evaluate the possibility to join the team.

Back on the road.

Sat 28 Jun 2014
After a few months of going back and forth about the platform, development language and design I decided to settle down and start from scratch with everything, C++ will be the development language, inside Cocos2d-x, and the game will be released for OSX, Linux, and Windows, I'm not a Windows fan, but I have to admit that pretty much everyone play games on that platform. Project wise, Windows is a good option.
References: www.cocos2d-x.org -