💥 Just released some optimizations to react-localize-redux. mmmmjoy 💥 #reactjs #Redux

💥 Just released some optimizations to react-localize-redux. mmmmjoy 💥 #reactjs #Redux

  • Typically you will store your translation data in json files, but the data can also be a vanilla JS object.
  • Once your translation data is in the correct format use the addTranslation action creator.
  • A selector that takes your redux and returns the raw translation data.
  • Redux action creator to set which languages you are supporting in your translations.
  • Redux action creator to add new translation data to your redux store.

Dead simple localization for your React/Redux components
Continue reading “💥 Just released some optimizations to react-localize-redux. mmmmjoy 💥 #reactjs #Redux”

webpack optimization — A Case Study – WalmartLabs – Medium

  • However, after going through webpack’s docs and code, there didn’t seem to be an easy way to disable that with a single switch.
  • I opened an issue here and after some discussion with webpack’s Tobias Koppers, we settled on allowing webpack’s node option to accept a false config.With NodeSourcePlugin disabled, our code that depend on it all failed and I was able to pinpoint among our hundreds of components, which one to look into.I found out that a few components that have server side only behavior implemented it through the runtime flag provided by exenv, like this:import { canUseDOM } from “exenv”function foo() { if (!
  • canUseDOM) { const crypto = require(“crypto”) // do something with crypto }}The idea is simple, if code is not executing on the browser, then do something on the server side only using the crypto module.
  • Unfortunately, webpack only does static analysis to find out what code needs to be bundled.
  • That means NodeJS crypto is included even though it’s only needed for server side.

Since we open sourced part of the Electrode platform from @WalmartLabs, we’ve had a lot of contributions to our NodeJS and ReactJS archetype modules, including bug fixes, new features, and updating…
Continue reading “webpack optimization — A Case Study – WalmartLabs – Medium”

“BukanMessenger” an Open Source Chat App Built on Top React Native & Meteor

“BukanMessenger” an Open Source Chat App Built on Top React Native & Meteor  via @ami #tech

  • “BukanMessenger” an Open Source Chat App Built on Top React Native  Meteortldr;BukanMessenger is a Messenger app build on top React Native and Meteor Js.
  • I hope with “BukanMessenger”, people could build their own Messenger easily.
  • That can be achieved because it build on top of React Native which is I think way more easier to Learn rather than Native iOS (obj C) or Android (JAVA).
  • Why BukanMessenger?It’s React Native, so it support android iOS by default!Simple Code, so you can easily contribute on it.Meteor is one of the most starred javascript framework, and it is very easy to usePrerequisitesMake sure You had been install NodeJs in your system https://nodejs.org/en/And ofc React Native forget Meteor Js as the backend ConfigurationReact Native (Front-end)$ git clone cd BukanMessenger$ npm install$ react-native run-ios #or react-native run-androidMeteor (Back-end)$ git clone cd BukanMessengerBackend$ meteor npm install$ meteor #run your meteor on http://localhost:3000Open “app/Config.
  • js”, and set the meteorUri variable as your Meteor server run atexport const meteorUri = Us :)Star repository ⭐️We are Ready to give Training to You/Your company to use/modify BukanMessenger.Buy our screencast about the basic development of BukanMessenger (COMING SOON)Like our facebook page hope this blog are useful for You whether to Customize “BukanMessenger” or Just understanding how chat app works.

BukanMessenger is a Messenger app build on top React Native and Meteor Js. It is customizeable and some new feature will coming soon every week. When telegram had been officially banned in my Country…
Continue reading ““BukanMessenger” an Open Source Chat App Built on Top React Native & Meteor”

7 Strengths of #ReactJS Every Programmer Should Know About

7 Strengths of #ReactJS Every Programmer Should Know About

  • React is blazingly fastIt is actually much faster than manually manipulating the DOM, which is the reason why Flipboard has built their own React-Canvas library to achieve 60fps performance on the mobile web.Modifying the DOM after every change can be slow, therefore React creates a simplified JavaScript version of DOM called VirtualDOM and uses a diffing algorithm to apply only necessary changes to the real DOM.JavaScript is a reasonably fast language, and typical web apps consist of only several hundreds of DOM elements.
  • They have invested years into creating the Facebook site, so a complete rewrite just to use React would not be justifiable.It is really easy to use React with jQuery, Angular, Backbone, or any other JavaScript framework.4.
  • You can create truly native apps with JavaScript and other tools you know from the web.
  • Some of the biggest innovations in React were actually inspired by ClojureScript, some were taken from Ember, and some come from Elm.Whether it is ClojureScript, Elm, Angular, or Ember, these great people are part of our Reactive Community, and they remind us why we should work together every day.The React ecosystem is extremely focused on developer experience and productivity.
  • But Facebook is not the only big supporter of the React community: Yahoo, Mozilla, Airbnb, Netflix, and other big companies use React in production and have supported the community with useful open-source libraries and tools.6.

In the past six years, we have seen a huge rise of JavaScript on the web. It has become a prominent server-side language and a popular compile target for other languages. Offline-first SPAs have…
Continue reading “7 Strengths of #ReactJS Every Programmer Should Know About”

pixielabs/cavy – An integration test framework for #reactjs native

  • Cavy is a cross-platform integration test framework for React Native, by Pixie Labs.
  • Cavy (ab)uses React generating functions to give you the ability to refer to, and simulate actions upon, deeply nested components within your application.
  • This function should be used if your testable component does not respond to either or , for example:

    Cavy is a comparable tool to Appium.

  • The key difference is that Appium uses native hooks to access components (accessibility IDs), wheras Cavy uses React Native refs.
  • Jest is a useful tool for unit testing individual React Native components, whereas Cavy is an integration testing tool allowing you to run end-to-end user interface tests.

cavy – An integration test framework for React Native.
Continue reading “pixielabs/cavy – An integration test framework for #reactjs native”

Moving Large Scale Web Apps to React

WEDNESDAY || Brooklyn, NY: Moving Large Scale Web Apps to @reactjs

#javascript #meetup

  • Just like with any production app, you may now be in the perpetual maintenance cycle or the app is still being used but is begging to be rewritten.
  • In this talk, Stan Bershadskiy will take you through the process of taking an existing application and porting it over to a more modern technology stack, such as React.
  • Stay after Stan’s talk and chat with current organizers to discuss open roles and responsibilities.
  • Stan Bershadskiy is an architect at Modus Create and specializes in all things JavaScript with vast knowledge in Sencha frameworks.
  • Stan is located in New York City and can be found co-organizing NYC.JS Meetups and presenting at conferences and meetups around the country.

Through the years we’ve built countless web apps using our favorite front-end tooling at the time. Just like with any production app, you may now be in the
Continue reading “Moving Large Scale Web Apps to React”