Tag: fragment
-
Avoiding Wrapper Divs in ReactJs
Hi everyone, Just a quick post on how you can avoid wrapper divs in ReactJs. It’s particularly useful when populating tables or creating parts of a larger component. Instead of the following: return ( Frogs Turtles ); You can use fragments: import React, { Fragment } from ‘react’ … return ( Frogs Turtles ); The…