Skip to content

Commit

Permalink
Clean up functional component.
Browse files Browse the repository at this point in the history
  • Loading branch information
elarsaks committed Aug 3, 2023
1 parent 52710a4 commit 622b8bd
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/components/FunctionContextComponent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,5 @@ export default () => {
maxWidth: "800px",
};

return (
<ThemeContext.Consumer>
{(darkTheme) => {
return <div style={themeStyles}>Function Theme</div>;
}}
</ThemeContext.Consumer>
);
return <div style={themeStyles}>Function Theme</div>;
};

0 comments on commit 622b8bd

Please sign in to comment.