Umbrella: 16.3 and 16.4 releases · Issue #12152 · facebook/react · GitHub

  • Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
  • Already on GitHub?
  • Sign in to your account

react – A declarative, efficient, and flexible JavaScript library for building user interfaces.
Continue reading “Umbrella: 16.3 and 16.4 releases · Issue #12152 · facebook/react · GitHub”

React, JSX and ES6 as a template language – Korbit Engineering – Medium

React, JSX and ES6 as a template language @poksme  #Reactjs #JavaScript #ES6

  • React, JSX and ES6 as a template languageThe last few years have seen an important popularity increase of front-end rendering frameworks and what once was a cosmetic paint coating using handwritten HTML and CSS became an abstracted JavaScript process that renders HTML and CSS.
  • The benefits of client-side HTML rendering are plenty but one down side is the rise of complexity for web integrators.What used to be rendered on the server using a template language (here moustache)……became a very noisy JavaScript module…The majority of the content of this file is keywords and software development notions (module, object, function, point dereference…).
  • Using ES6 syntactic sugars and react functional component we can greatly reduce this noise.What happened here?
  • Technically speaking, we export as default an arrow function that destructures its only argument (props) and returns some JSX.
  • The result is a much more simple syntax closer to a template.But does this scale?The benefit of this notation is that we get a declarative block at the top of the file that lists the needed properties and a template block at the bottom that uses the properties.At Korbit we have been using this component style for hyphen.to.

The last few years have seen an important popularity increase of front-end rendering frameworks and what once was a cosmetic paint coating using handwritten HTML and CSS became an abstracted…
Continue reading “React, JSX and ES6 as a template language – Korbit Engineering – Medium”