The most unknown redux performance trick – Julien De Luca – Medium

  • The most unknown redux performance trickRegarding optimizing redux, there are some well known techniques: memoizing, using reselect for example.But there is one that remains unknown to many, although it’s simple and very efficient: The connect’s areStatesEqual option.When state changes, all connect functions will be called, props mapped from state and…
  • Imagine something like this :Considering action addTodo adds a todo item in the todo reducer, when this action will be called, both connect will then be called and mapStateToProps computed.Using areStatesEqual option, you can tell when not to bother to call mapStateToProps at all.The docs say :[areStatesEqual] (Function): When pure, compares incoming…
  • This function is passed 2 arguments: the previous state, and the next state.
  • You return a boolean telling whether the two states have changed, regarding the state slice you’re interested in, and if the function returns true, mapStateToProps will not even be called.Let’s update our example to use this function :Now, when state.users.all changes, the TodoContainer’s areStatesEqual option will be called, it will return…
  • It makes much more sense when using more complex mapStateToProps.Memoization remains useful when using props in mapStateToProps and methods that return new objects or arrays.Perfs gain can be really impressive only using this simple trick.Enjoy !

Regarding optimizing redux, there are some well known techniques: memoizing, using reselect for example. But there is one that remains unknown to many, although it’s simple and very efficient: The…
Continue reading “The most unknown redux performance trick – Julien De Luca – Medium”

Math: the React.js Way – Hacker Noon

Math: the React.js Way

☞ 

#reactjs #javascript

  • Math: the React.js WayHave you found yourself doing intense math problems using weird symbols like +, −, á, and×?
  • Thanks to react-real-math you can now harness the power of the React.js Virtual DOM to make your Math blazing🔥 fast!react-real-math provides an incredibly easy to understand API out of the gate, for free.
  • Let’s take a look at an example of react-real-math in action.
  • Consider this old-school almost obfuscated math problem:1+1×2=?
  • If you would like to contribute to react-real-math please check out the project’s

Have you found yourself doing intense math problems using weird symbols like +, −, ÷, and×? Do you enjoy the speed and developer experience of React.js? Thanks to react-real-math you can now harness…
Continue reading “Math: the React.js Way – Hacker Noon”

The most unknown redux performance trick – Julien De Luca – Medium

  • The most unknown redux performance trickRegarding optimizing redux, there are some well known techniques: memoizing, using reselect for example.But there is one that remains unknown to many, although it’s simple and very efficient: The connect’s areStatesEqual option.When state changes, all connect functions will be called, props mapped from state and…
  • Imagine something like this :Considering action addTodo adds a todo item in the todo reducer, when this action will be called, both connect will then be called and mapStateToProps computed.Using areStatesEqual option, you can tell when not to bother to call mapStateToProps at all.The docs say :[areStatesEqual] (Function): When pure, compares incoming…
  • This function is passed 2 arguments: the previous state, and the next state.
  • You return a boolean telling whether the two states have changed, regarding the state slice you’re interested in, and if the function returns true, mapStateToProps will not even be called.Let’s update our example to use this function :Now, when state.users.all changes, the TodoContainer’s areStatesEqual option will be called, it will return…
  • It makes much more sense when using more complex mapStateToProps.Memoization remains useful when using props in mapStateToProps and methods that return new objects or arrays.Perfs gain can be really impressive only using this simple trick.Enjoy !

Regarding optimizing redux, there are some well known techniques: memoizing, using reselect for example. But there is one that remains unknown to many, although it’s simple and very efficient: The…
Continue reading “The most unknown redux performance trick – Julien De Luca – Medium”

Math: the React.js Way – Hacker Noon

Math: the React.js Way

☞ 

#reactjs #javascript

  • Math: the React.js WayHave you found yourself doing intense math problems using weird symbols like +, −, á, and×?
  • Thanks to react-real-math you can now harness the power of the React.js Virtual DOM to make your Math blazing🔥 fast!react-real-math provides an incredibly easy to understand API out of the gate, for free.
  • Let’s take a look at an example of react-real-math in action.
  • Consider this old-school almost obfuscated math problem:1+1×2=?
  • If you would like to contribute to react-real-math please check out the project’s

Have you found yourself doing intense math problems using weird symbols like +, −, ÷, and×? Do you enjoy the speed and developer experience of React.js? Thanks to react-real-math you can now harness…
Continue reading “Math: the React.js Way – Hacker Noon”

The Official Microsoft ASP.NET Site

CORE 2 and ANGULAR 4
☞ 
#angularjs #angular #js #react #js

  • The product(s) you are about to install leverage the Web Platform Installer (WebPI) for installation.
  • By downloading and using the Web Platform Installer (WebPI), you agree to the license terms and privacy statement for WebPI.
  • This installer will contact Microsoft over the Internet to retrieve product information.
  • WebPI uses the Microsoft Customer Experience Improvement Program (CEIP), which is turned on by default, see privacy statement for more information.
  • To view which software uses CEIP, see here.

Home of the Microsoft ASP.NET development community. Download Visual Studio, post to the forums, read ASP.NET blogs and learn about ASP.NET.
Continue reading “The Official Microsoft ASP.NET Site”

The joy of React+Redux with Elixir/OTP

The joy of React+Redux with Elixir/OTP  #ReactJS #Redux #Elixir

  • Graphically, this is the schema of a Redux app: – – Basically, Redux does the following: – – An OTP GenServer does the following: – – In short, we can use the same mental model for the client and server side.
  • We can dispatch events to Elixir, compute a new version state server side, propagate this state to redux, and our views will get updated automatically.
  • We have just implemented the thick red arrows: – – We will update the store with the state that comes from the server in two different situations.
  • With this, we have connected the server state with Redux state.
  • But, if you want to have state shared between different users, or we want to have pieces of the state in the server for other reasons, such as enforcing validation rules, we can use the same mental mode with Elixir GenServers.

Digital solutions partner. High quality work with Symfony, React and Elixir.
Continue reading “The joy of React+Redux with Elixir/OTP”

⚛️ 🚀 Introducing React-Static — A progressive static-site framework for React!

  • How well that static site performs and how easily you can build that site is another story.ProsVery easy to get startedWell documentedConsSubpar developer experience for static functionality no hot-reloadingLarge per-page JS bundles, resulting in a lot of unnecessary duplicate code being downloaded.Difficult root component customizationDestructive routing.
  • We also knew that we needed to ditch built-in proprietary connectors ASAP; being able to get your data from anywhere is important, but the ability to use and access that data in your site is paramount.Most importantly, we needed a tool that would allow us to build things like an…
  • It’s insanely fast, touts fantastic SEO capabilities, and is probably the most React-friendly static-site library on the internet.Let’s get to it.How does it work?react-static starts by exporting a single JS bundle, which includes every template for your entire site.
  • To connect a component to this data, you use a convenient HOC called getRouteProps.The HTML files generated by react-static ensure that pages load instantly and are optimized for SEO.Once the page is loaded, your site invisibly and instantly transitions to your react app.At this point, navigating around your app will…
  • You’ve worked hard enough producing and organizing all of the data for your website, so the last thing you need is some superfluous GraphQL layer or custom component lifecycle lodging itself between your data and your pages.

At Nozzle.io, we take SEO, site performance, and user/developer experience very seriously. Over the last year, we’ve launched many sites using different static site tools that claim to solve these…
Continue reading “⚛️ 🚀 Introducing React-Static — A progressive static-site framework for React!”