My first reaction was of course: What is a Pascal Triangle? After reading wikipedia I said, ok let’s give it a try. At the end I didn’t make a function, but a whole ES6 class that renders it nicely to the browser.
Check out the codepen:
See the Pen A Pascal Triangle in ES6 by Jean-Pierre Sierens (@jpsierens) on CodePen.
If you want to start using ES6 in your projects, check out this tutorial I wrote.
The guys at udemy were nice enough to hand me 50 coupons for the course: Build Web Apps with React JS and Flux.
With the coupon, the course becomes free of charge!
So naturally I’m giving these to you! If you want to learn how to build web apps with React and Flux there is no better chance than this. This course will get you up and running quickly, and teach you the core knowledge you need to deeply understand and build React components.
Note: All coupons have been used!
You can head over to this post to learn how to set up a project with react.
Note: This post is outdated, here is an updated post
In this post I will give you a simple set up or boilerplate for starting a React project in ES6. This boilerplate is not meant to be used for professional stuff. Use it to get started and then you can structure it in a better way.
If you are just looking to get started up with ES6, you can take a look at my previous post.
Continue reading “How to get started with React js in ES6”
Note: This post is outdated because Babel changed the way it works. Please read this updated tutorial to start writing ES6 apps.