I work for a company with a large reaction code base ... not all of them are responsive to standards, and not all of them adhere to their own standards (they think this is pretty standard haha).
I see that the reaction gets involved in the components in different ways. Here are two examples - marked (1) and (2):
(1) let React = require('react'); (2) import React, {Component, PropTypes} from 'react';
What is the difference and why use one of them? This is not only react input. I also see import {Component, PropTypes} from 'react'; and let {Component} = React; .
I did a short search on them on the net and could not find what I was looking for. maybe my search terms are a bit. I will be happy to have a short explanation and hopefully documentation to go with it. Thanks.
Lefty source share