Create own React.Fragment

twitter logo github logo ・1 min read

import React from 'react';
import { render } from 'react-dom';

React.OwnFragment = ({children}) => children

const App = () => (
  <React.OwnFragment>
    <div>We</div>
    <div>have</div>
    <div>own</div>
    <div>Fragments</div>
    <div>!!!</div>
  </React.OwnFragment>
)

render(<App />, document.getElementById('root'));
twitter logo DISCUSS
Classic DEV Post from Oct 25 '18

You want HOW MANY years experience?!

A handy tool for tech recruiters who ask for fifteen years experience in technologies that have only existed for three months.

Andrew Luca profile image
How good is your Google Fu? All in Developer!

Do you prefer sans serif over serif?

You can change your font preferences in the "misc" section of your settings. ❤️