JSX

JSX – syntax extension of JavaScript.
Using it with React to describe what the UI should look like.
JSX remind a template language, but it comes with the full power of JavaScript.
JSX produces React „elements”

Class Components:
– if components need access to this keyword – use JS6 Classes
– if components need Lifecycle Methods – use JS6 Classes

Hope this helps and happy coding :)

Zobacz jeszcze

telephone label

prosty kod do osadzenia telefonu jako klikalnego numeru pobranego z pola ACF: <!-- header telephone label --> <?php if( function_exists('acf_add_options_page') ) { $telLabel =...

React podstawy

React blured separation of concerns style within component bug easy to locate -in one file self contained component rules: create JS Object - properties and values of this object will be...