10 fun facts
om React

👋 Hei hei!

Jeg heter Kristofer, og bruker altfor mye tid på React.

The DOM ain't the only one

tiny.cc/react-renderers

FaxJS

tiny.cc/faxjs

INSTAgram ❤️

Ingen Insta-suksess

134 000
5 400 000
1 300

EVENT-SYSTEMET

Mange veier til rom

function FunFactList(props) {
  return (
    <ul className="fun-facts">
      {props.funfacts.map(f => 
      	<li key={f}>{f}</li>
      )}
    </ul>
  );
}

const FunFactList = props => (
  <ul className="fun-facts">
    {props.funfacts.map(f => 
      <li key={f}>{f}</li>
    )}
  </ul>
);
class FunFactList extends React.Component {
  render() {
    return (
      <ul className="fun-facts">
        {this.props.funfacts.map(f => 
          <li key={f}>{f}</li>
        )}
      </ul>
    );
  }
}
const FunFactList = React.createClass({
  render: function() {
    return (
      <ul className="fun-facts">
        {this.props.funfacts.map(f => 
          <li key={f}>{f}</li>
        )}
      </ul>
    );
  }
});
const FunFactList = function() {
  return {
    render() {
      return (
        <ul className="fun-facts">
          {this.props.funfacts.map(f => 
            <li key={f}>{f}</li>
          )}
        </ul>
      );
    }
  }
};

Hooks?

accessory accompaniment accoutrement action add-on adopt adjunct adornment affix anchor annex appendage aspect atom attachment augmentation augmenter auxiliary behavior binding bolt bookmark capacity cell characteristic charm chip codon complement complication conduit decoration decorator effect enhancement enhancer expander expansion extender extension extra facet factor feature fixin flourish forwarder function trait gene handle holder implant inflater inlet layer ligature line link meme mixin modifier modulator module outlet particle pin pinlet plugin reagent receptacle recipe sauce seasoning segment skeleton slot smooshin staple supplement tack tie tool trait unit utility

Twitter

10-ish

10 fun facts om React

By Kristofer Giltvedt Selbekk

10 fun facts om React

  • 242