forked from jenseng/react-i18nliner
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make ComponentInterpolator a pure functional component
Because ComponentInterpolator has no persistent state, this breaks the dependency on the deprecated createClass by making ComponentInterpolator a pure functional component instead. To do this, props and keyCounter have been made part of the method signatures of its recursive helper methods.
- Loading branch information
Jason Wodicka
committed
Jun 27, 2017
1 parent
ff60265
commit b2adb45
Showing
1 changed file
with
76 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters