Skip to content

Commit

Permalink
some cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Asabeneh committed Oct 10, 2020
1 parent 840374d commit 56cba79
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ All the CSS files on index.html will moved into styles folder and after that eac
Fragments are a way to avoid unnecessary parent element in JSX. Let's implement a fragment. We import fragment from react module. As you can see below, we imported React and fragment together by use a comma separation.
```js
import React, { fragment } from 'react'
import React, { Fragment } from 'react'
const Skills = () => {
return (
Expand All @@ -522,7 +522,7 @@ const RequiredSkills = () => {
}
```
It is also possible to just extract it from react as follows.
It is also possible to just extract the fragment module from React as shown below.
```js
import React from 'react'
Expand Down

0 comments on commit 56cba79

Please sign in to comment.