React Native + Vue.js = React-Vue () This is so awesome! #react #vuejs

  • React-Vue is designed to connect React and Vue.
  • Thanks to Vue’s clear hierarchical design, we can easily pull out the reactivity system (9 KB gzipped), and drive React component rendering.
  • Introduce react-vue-loader, which compile the Vue component into a React component.
  • As you might think, your previously written Vue components can run inside the React component, and your React components can also run inside the Vue component.
  • All React Native Components exists as built-in components in Vue, you can use react native components as following

    The similar JSX code is as follows

react-vue – Run Vue in React and React Native
Continue reading “React Native + Vue.js = React-Vue () This is so awesome! #react #vuejs”

A case for Create React App – Erika Dike – Medium

A case for Create React App  #react #webpack #createreactapp #reactjs

  • A case for Create React AppRecently, I heard my colleague explain why he doesn’t use Create React App (CRA) or any boiler plate for that matter on any of his projects.
  • So in using create react app for instance he had ejected and found out that it produced a very complicated Webpack config file.
  • He argued that create react app added a lot of unnecessary bloat to react projects.I believe this is a valid concern when starting up projects you expect to be used for a long time.
  • If you do eject, you get a simple Webpack config file that explains every line so you make every change with confidence.
  • You may never get to this point, though; CRA allows you to create your app without standing in your way.

Recently, I heard my colleague explain why he doesn’t use Create React App (CRA) or any boiler plate for that matter on any of his projects. I agreed with a couple of his points but didn’t agree on…
Continue reading “A case for Create React App – Erika Dike – Medium”

Reasons to love Reason – Reactive Conf

Reasons to love Reason:  #ReactJS #JavaScript

  • Reasons to love ReasonReason is a rethought syntax and tooling ecosystem for OCaml created by Facebook.
  • OCaml is great, but its weird syntax was holding people back from trying it out, so Cheng Lou and Jordan Walke along with other people decided to fix it — and Reason was born!Learn more about Reason at ReactiveConf 2017!
  • And this incredible talk was born later that year:Sean’s talk at ReactiveConf 2016Why Reason?Since Reason is a dialect of OCaml, you get a lot of good functional stuff:Learn more about Reason at ReactiveConf 2017!
  • REPL, auto-formatting, auto-generated type annotations, automatic printer generation, and Reason to OCaml, and OCaml to Reason transpiler are all included in the package.refmt inside Vim, called once per window resize (source: reason docs)Reason is getting hotSince 2016, Facebook has migrated 25% of the Messenger app code to Reason.
  • They use BuckleScript to compile OCaml to JS, and they have created Reason bindings for React.Recently, Cheng gave great talks at React Conf 2017 and at React London 2017, and ReasonML communities have been forming all around the world.Reason is becoming a big thing, and you shouldn’t miss out on that.

Reason is a rethought syntax and tooling ecosystem for OCaml created by Facebook. OCaml is great, but its weird syntax was holding people back from trying it out, so Cheng Lou and Jordan Walke along…
Continue reading “Reasons to love Reason – Reactive Conf”

Styling React components with css modules and themes.

Styling #ReactJS components with #CSS modules and themes:  #JavaScript

  • Our requirementsWe have 3 different apps: web app, android and iOS.
  • Your components in the different apps share the same structure and logic, only theme settings are changing.The ProblemHow to use the same identifiers but create different styles for each app?The current scenario force us to update our components to make them aware of themes by using some plugin.
  • But sometimes, you want to create different builds for different apps; think about creating different layouts for android or iOS, or creating different themes and do some AB testing with them.This is where this loader comes handy, the idea is to create the themes in our css or sass file, and then the loader will take care of including the correct css rulesInstall itnpm install cssthemes-loader –save-devSetupWrite your css modules with selectors like you want, I recommend using it with :selector and then adding the styles there for each theme.
  • elem2 { font-size: 12px; }}Your React component will remain the same, no need to change anything there, which I think it’s the cool part of this.You’ve to include the loader before (in webpack’s logic) sass-loader or css-loader.
  • s?css$/, use: [ { loader: ‘style-loader’ }, { loader: ‘css-loader’ }, { loader: ‘sass-loader’ }, { loader: ‘cssthemes-loader’, options: { target: ‘:android’, ignore: [‘:ios’] } }, ], exclude: /node_modules/, } ],}}This example is for running with hot reloading so we’re using style-loader, but you can also use extract-text-webpack-plugin or any other, this loader just clean up the initial styling rules.Now after running the webpack command we’ll get this css for this module.elem { color: blue; font-size: 10px; text-align: center; .

We have 3 different apps: web app, android and iOS. Each app has its own custom styles.
We’re using React, Webpack and css-modules.
Your components in the different apps share the same structure and…
Continue reading “Styling React components with css modules and themes.”

ReactiveMeetups Hradec Králové

TODAY 🍾 with @healves82 at #fimuhk #reactjs @Unicorn_Systems @ReactiveConf #reactivemeetups

  • We’re inviting you to the ReactiveMeetups Hradec Králové!
  • This meetup’s speaker is going to be Henrique Alves Registration I
    18:00 Opening I
    18:05 ReactiveMeetups HK: User interfaces as building blocks I
    19:30 QA I
    19:50 Food, Drinks and Networking

    Become a member of the Reactive Meetups Hradec Králové

We’re inviting you to the ReactiveMeetups Hradec Králové! This meetup’s speaker is going to be Henrique Alves (https://github.com/henriquea).

Timeline:

17:30 Registration I
18:00 Opening I
18:05 ReactiveMeetups HK: User interfaces as building blocks I
19:30 Q&A I
19:50 Food, Drinks and Networking

Become a member of the Reactive Meetups Hradec Králové community:
https://www.facebook.com/groups/reactivemeetupsHK/

Continue reading “ReactiveMeetups Hradec Králové”

Create amazing 360 and VR content using React #ReactVR #ReactJS

Create amazing 360 and VR content using React



#ReactVR #ReactJS

  • React VR is a framework for the creation of VR applications that run in your web browser.
  • Leveraging web technologies and the existing React ecosystem, React VR aims to simplify the construction of 360 experiences and democratize the creation of VR content.
  • We’ve designed the React VR developer experience to get your first project up and running in only a few minutes.
  • Before installing the developer tools, you’ll need to make sure that you have two prerequisites installed:

    Next, install the React VR CLI – a command-line tool that generates the basic layout of new projects.

  • It’s helpful if you include the version of React VR, Browser, and OS you’re using.

react-vr – Create amazing 360 and VR content using React
Continue reading “Create amazing 360 and VR content using React

#ReactVR #ReactJS”